Microsoft KB Archive/311232

= INFO: MSXML 4.0: normalize-line-breaks Property with SAXXMLReader =

Article ID: 311232

Article Last Modified on 11/27/2001

-

APPLIES TO


 * Microsoft XML Core Services 4.0

-



This article was previously published under Q311232



SUMMARY
The ISAXXMLReader interface in MSXML 4.0 does not include the normalize-line-breaks feature.



MORE INFORMATION
With the MSXML 3.0 parser, you can control end of the line handling with the Simple API for XML (SAX) API when you call the putFeature method on ISAXXMLReader. The SAX parser only normalizes the carriage return/line feed (CR/LF) to line feed (LF) when you call the putFeature method and normalize-line-breaks is set to True in MSXML 3.0 or VARIANT_TRUE in Microsoft Visual C++ (this is the default setting).

With MSXML 4.0, however, this property cannot be configured under ISAXXMLReader. CR/LF sequences are always normalized to single LF. In this way, the XML parser is more compliant with the World Wide Web Consortium (W3C) XML specification.

To download the MSXML 4.0 parser, see the following Microsoft Developer Network (MSDN) Web site:

http://msdn.microsoft.com/xml

Additional query words: SAX putFeature

Keywords: kbinfo KB311232

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.