PHP XML Object To HTML Friendly Text String?

KomaZoame

New Member
I'm using PHP5 and it's inbuilt SOAP functionality. I'm catching the SOAP Fault errors, and email myself when one is triggered. What I really need to do is include the __getLastRequest() and __getLastResponse(), however as these are XML objects, when I try to include them by echoing them into the body of my HTML email, for obvious reasons they don't appear in full.Is there a function or class I can use to convert these objects into a HTML friendly string?I've googled this but without any joy. If possible i'd like to avoid using a class external to PHPs own functionality but if needs must i'll have to.EDITED:How can I format the following XML so that it gives me an indented browser friendly version?\[code\]<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="xxx.com/"><SOAP-ENV:Body><ns1:Ad
 
Back
Top