Hi guys,
A customer of ours noticed that when he uses our product to generate an XML file using a TXT template, the result XML has some random characters at the beginning.
We were able to reproduce this by simply loading a TXT and save it to XML.
final Document document = new Document(“file.txt”);
document.save(“file.xml”, SaveFormat.TEXT);
These added characters are noticeable when we open the XML file in https://hexed.it/
We are currently using Aspose Words 18.10 for Java but I tested with 20.1 and the problem persists.
file.txt opened in hexed.it - image.png (25.4 KB)
file.xml opened in hexed.it - image.png (20.5 KB)
Do you have any clue why this happens?
Can we do something to fix it or is it a bug you have to fix?
Best regards,
Hugo Freixo