MSXML
-
I am using MSXML and prior to sending a XML (IXMLDOMDocument2*) through to a server, I need to strip out the CR's and LF's or just the CR's (0x09) from the XML file to send. How can I do this please?
-
Yes. But that still leaves the CR's i.e. 0x0d! The document being loaded from disk has been canonalised ( C14N ) and doesn't have the CR's but as soon as it is loaded into my IXMLDomDocument2 object they are back. I have the following settings set: put_async( VARIANT_FALSE ) put_validateOnParse(VARIANT_TRUE) put_resolveExternals(VARIANT_FALSE) put_preserveWhiteSpace(VARIANT_TRUE) I would appreciate anyones advise on this.
-
Yes. But that still leaves the CR's i.e. 0x0d! The document being loaded from disk has been canonalised ( C14N ) and doesn't have the CR's but as soon as it is loaded into my IXMLDomDocument2 object they are back. I have the following settings set: put_async( VARIANT_FALSE ) put_validateOnParse(VARIANT_TRUE) put_resolveExternals(VARIANT_FALSE) put_preserveWhiteSpace(VARIANT_TRUE) I would appreciate anyones advise on this.
-
Andy H wrote:
put_preserveWhiteSpace(VARIANT_TRUE)
:omg::wtf: VARIANT_TRUE != VARIANT_FALSE :(:sigh::doh:
led mike
What I meant that I had tried set preserveWhiteSpace to VARIANT_TRUE. This does indeed get rid of the WhiteSpace but I still have CR-LF's i.e. I have: 0D 0A 09 09 Because the xml file saved to disk has been C14N'ed then when loaded into my IXMLDOMDocument2 object for transmission the signle LF's i.e. 0A have been converted back into CR-LF's i.e. OD OA pairs. What I want to know is how can I load the XML file into my IXMLDOMDocument2 object without it changing it in any way?