I have run into an issue nesting one MSXML object within another MSXML object that when I output the XML from the outer MSXML object, the inner MSXML object's XML has been sanitized such that all of the special characters have been translated.
This article explains the mapping which is being done:
http://support.microsoft.com/kb/251354
Is there some way to have the outer MSXML simply not perform sanitation on the data, and instead allow the XML content to pass straight through?
Sample .XML output of the outer MSXML object is as follows:
This is more how I desire it to work as far as character encoding. (Yes I realize the code is not producing exactly the same schema currently.)
Basically the <FASRuleMessage> tag is what I want to be the inner MSXML object. Based on the <FASRule> value I will drop into the correct parser code for the particular message type.
So I am looking for a way to allow XML tags to pass through the MSXML object bare / un-encoded.
This article explains the mapping which is being done:
http://support.microsoft.com/kb/251354
Is there some way to have the outer MSXML simply not perform sanitation on the data, and instead allow the XML content to pass straight through?
Sample .XML output of the outer MSXML object is as follows:
Code:
? objXMLDOMDoc.XML
<FASMessage><XMLSchemaVersion>2.1.0.1</XMLSchemaVersion><FASRule>FASEmailSend</FASRule><FASRuleMessage><FASRuleMessage><FromAddress>Michael Lueck <mlueck@company.com></FromAddress><ToAddress>Michael Lueck <mlueck@company.com></ToAddress><MsgSubject>This is a first test email!</MsgSubject><Priority>0</Priority><MsgBody>This is a way cool test!</MsgBody></FASRuleMessage> </FASRuleMessage></FASMessage>
Code:
<FASMessage>
<XMLSchemaVersion>2.1.0.1</XMLSchemaVersion>
<FASRule>FASEmailSend</FASRule>
<FASRuleMessage>
<FromName>Michael Lueck</FromName>
<FromAddress>mlueck@company.com</FromAddress>
<ToName>Michael Lueck</ToName>
<ToAddress>mlueck@company.com</ToAddress>
<MsgSubject>This is a first test email!</MsgSubject>
<Priority>0</Priority>
<MsgBody>This is a way cool test!</MsgBody>
</FASRuleMessage>
</FASMessage>
So I am looking for a way to allow XML tags to pass through the MSXML object bare / un-encoded.