I have a xml file from which I am generating the PDF. The xml is dynamic and it contains a field which can be html data. So, i made it to IsHtmlTagSupported=true.
The data is :
Test <and> , &
While generating the PDF i am getting the following exception :
org.xml.sax.SAXParseException: The entity "nbsp" was referenced, but not declared.
AsposeDelegate Error in main
[Fatal Error] :1:1757: The entity "nbsp" was referenced, but not declared.
The code template is :
Pdf pdf = new Pdf();
String inputFile = "C:\\Documents and Settings\\Desktop\\testing.txt";
String data = readFile(new File(inputFile));
pdf.bindXML(new StringBufferInputStream(data), null);
Attaching the testing.txt
Aspose Java Version 2.7.0/2.9.0 (tried in both)