Microsoft KB Archive/308563

= INFO: List of Issues Fixed in Microsoft XML 3.0 Service Pack 2 (Part 1 of 4) =

Article ID: 308563

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft XML Core Services 4.0
 * Microsoft XML Parser 3.0 Service Pack 1
 * Microsoft XML Parser 3.0 Service Pack 2

-



This article was previously published under Q308563



SUMMARY
This article is part 1 of 4 in a series of articles documenting the bugs fixed in MSXML 3.0 Service Pack 2 (MSXML 3.0 SP2).

The following bugs have been fixed in MSXML 3.0 SP2:
 * XPath search fails when you search into external parsed entities


 * Doc stream does not parse XML until the stream is closed


 * XPath function generates duplicate IDs for namespace nodes and default attributes


 * MSXML may fail to report encoding errors when you save small XML files

For additional information about MSXML 3.0 SP2, click the article number below to view the article in the Microsoft Knowledge Base:

308480 INFO: How to Obtain the Latest Microsoft XML 3.0 Service Pack



BUG: XPath search fails when you search into external parsed entities
If the Test.xml file contains the following XML data <!DOCTYPE RootElement[ <!ELEMENT RootElement (ExternalElement) > <!ELEMENT ExternalElement (#PCDATA) > <!ENTITY External SYSTEM 'external.xml'>]>  &External;  that contains a reference to another XML file, External.xml, as follows Inner Text of External Element and calls the following: xmldoc.documentElement.selectSingleNode( &quot;ExternalElement&quot;  ) no node is returned with the MSXML 3.0 parser.

back to the top

BUG: Doc stream does not parse XML until the stream is closed
When you call QueryInterface on the DOMDocument object for an IStream interface and then write to the stream, the DOMDocument is not loaded until the stream is released. You expect the parser to be invoked when you call IStream::Commit.

back to the top

BUG: XPath function generates duplicate IDs for namespace nodes and default attributes
The XPath generate-id function returns duplicate node IDs for namespace nodes and default attributes.

For example, the XSL transformation generates output that contains duplicate IDs when you apply the following style sheet     Element   , id of namespace  <xsl:value-of select=&quot;name(.)&quot;/>  = </xsl:text> <xsl:value-of select=&quot;generate-id(.)&quot;/> &#xa;</xsl:text> </xsl:for-each> </xsl:template> </xsl:stylesheet> to the following XML data: <a:a xmlns:a=&quot;urn:sample&quot;> <a:b> <a:c/> </a:b> </a:a> back to the top

BUG: MSXML may fail to report encoding errors when you save small XML files
When you save a small XML file that contains characters that are not supported by a given encoding, MSXML 3.0 and 3.0 SP1 may fail to report the encoding errors. Starting with MSXML 3.0 SP2, the encoding errors are always reported.

back to the top

<div class="references_section">