\n" When MSX...">

MSXML and String Normalization (?) Document.xml Properties

I created the following simple xml (C escape sequence is used) " <A>\n</A>" When MSXML(v4 and v6) serializes a DOM document using IXMLDOMDocument2.xml, it changes the new line to dos format and returns: " <A>\r\n</A>".

When I use the DOM to extract only the node string inside the element <A>, I get the correct single-character string ("\n").

Of course, I have preserveWhiteSpaceset the valueVARIANT_TRUE

XML.Net and Xerces parsers work fine and do not modify the stored string when serializing an XML document.

Is this an error in msxml? Any ideas?

thanks jiri

+3
source share
1 answer

Microsoft MSXML 4 w3wc (. http://support.microsoft.com/kb/261293)

, xml .NET, - .Net 2.0 .

, , , (, \r\n \n), base- 64 ( )

0

All Articles