Display XML page in a field for tntexpress shipper.


I’m building a TNTExpress module to help logisitics group in daily shipments. the module will place the shipment orders and monitor delivery status.

TNT server is sending back an XML file that can be opened in a browser to display and print the consignement note, here is the form:

I would need to:
1- display the well formed xml in a field
2- include this field in the save to PDF.

current status is:
1- i’m able to display the raw XML only.
2- save as pdf function is working but again i’m only able to print the the raw XML.

Do you have an Idea on how to do this ?

Thank you,