Hello,
I am making a log system to capture xml that is retrieved using a Classic ASP page.
Sample A is the code that makes the log
Sample B is a sample of the result which has what appears to be encoded values
Ex < $gt; etc
I'd like the Sample B in the log file to appear as xml without these encodings.
How can I do that? Some sort of decode?
Sample A:
Dim xmlDoc, rootEl, child1, child2, p
Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")
Set rootEl = xmlDoc.createElement("root")
xmlDoc.appendChild rootEl
Set child1 = xmlDoc.createElement("child1")
Set child2 = xmlDoc.createElement("child2")
child1.text = l
child2.text = PEBFRQ.xml & PEBFRS.xml
rootEl.appendChild child1
rootEl.appendChild child2
Set p = xmlDoc.createProcessingInstruction("xml","version='1.0'")
xmlDoc.insertBefore p,xmlDoc.childNodes(0)
xmlDoc.Save Server.MapPath("log\" & key & "_RunInsertAPOHBTUB" & ".xml")
Sample B
<?xml version="1.0"?>
<root><child1>Log started at 12/21/2012 5:20:12 PM</child1><child2><sbixml>
<NetSightMessage>
<Header>
<CurrentLedgers GL="GL" JL="JL"/>
<UserID>BSIBRUN</UserID>