Display XML page in a field for tntexpress shipper.

Hello,

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:
https://express.tnt.com/expresswebservices-website/docs/ExpressConnect%20Shipping%20Integration%20Guide%20v3.0.pdf#page=58

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,
Julien