INFO: MSXML 4.0: normalize-line-breaks Property with SAXXMLReader (311232)



The information in this article applies to:

  • Microsoft XML 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:

Modification Type:MajorLast Reviewed:11/27/2001
Keywords:kbinfo KB311232