I am currently evaluating version 17.2 with the view to upgrading our Aspose Pdf from our current version of 3.8.
Document doc = new Document();<o:p></o:p>
doc.BindXml(dataDir + “XML2PDF.xml”);<o:p></o:p>
doc.Save(dataDir + “XMLToPDF_out.pdf”);<span style=“font-size: 9.5pt; font-family: “Arial Narrow”, sans-serif;”><o:p></o:p>
For the reference I have also attached the generated output by above code. You may check the new approach in “Working with Aspose.Pdf” section of API documentation. In case if you need further assistance please feel free to contact us.
regarding new DOM approach is under process. I hope that you will get updated information about working with XML using new DOM approach in API documentation soon. In case of any further assistance please feel free to contact us. We are sorry for the inconvenience.