We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com


Received : 2007/10/03 12:05:23
Message : I am trying to used the xmldocument object to bind the pdf creation. But having issues passing the xml file name
I get the error :

Invalid XML document, The document does not have a root element.

heres the code so far, can you tell me how to proceed?

Dim xmlDoc As New System.Xml.XmlDocument

Dim pdf1 As Pdf = New Pdf

Dim memStream As System.IO.MemoryStream = New System.IO.MemoryStream

memStream.Seek(0, SeekOrigin.Begin)


pdf1.BindXML(xmlDoc, Nothing)



This message was posted using Aspose.Live 2 Forum


Thank you for considering Aspose.

Your code doesn't look fine. To use Pdf.BindXML method you should have an XML in Aspose.Pdf format. Or if it is standard XML then you must have an XSLT file. Can you please send us your XML file and let us check this issue.