So let me apologize right up front. I'm not a PHP programmer, I'm a C# programmer. But I have to support a website that was written for my company in PHP and is falling apart. So here's my simple question:
I have the following code:
xml_doc = new ActiveXObject("Microsoft.XMLDOM");
xml_doc.async = false;
url = "./viewInvoiceXML.php?soh_id=<? echo($soh_id) ?>";
xml_doc.load(url);
xmlObj = xml_doc.documentElement;
Later in the page, I'm displaying some XML nodes out. I'm needing to see all the XML thats returned so I can find the right nodes that need to be displayed.
How do I print to the page this xml_doc or xmlObj? I'd just like to see all XML (tags and all). Is this possible?
------------Update-----------------
Well, as many of you have point out, its JScript that might be creating the ActiveXObject.
If its JScript, then I'm needing a way in JScript to show me the XML information. I'm telling you, I don't know much about this website at all.
Here's the other code that is getting the information out of the XML node.
xmlObj.childNodes(1).childNodes(0).childNodes(6).text