Hi,
I am trying to convert XML to PDF file.
I have files under My folder structure is d:/PDF
d:/PDF/ConvertXML.java and d:/PDF/template.xml
And have aspose-pdf-2.8.0-jdk16.jar in the classpath.
When I am running the program I am getting following exception.
What am I doing wrong here?
My java program:
Pdf pdf = new Pdf();
pdf.bindXML("D:/PDF/SalesByCategory.xml", null);
pdf.save("d:/temp/pdfHolder/xmlDoc.pdf");
Exception:
[Fatal Error] :1:8: The processing instruction target matching "[xX][mM][lL]" is not allowed.
java.lang.NullPointerException
at aspose.pdf.xml.Aba.a(SourceFile:180)
at aspose.pdf.xml.Aba.a(SourceFile:159)
at aspose.pdf.Pdf.bindXML(SourceFile:1588)
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
null
Thanks
Mamatha