Microsoft KB Archive/263592

= FIX: XML Datatype Validation Occurs at Parse Time Even When Not Validating =

Article ID: 263592

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft XML Parser 2.0

-



This article was previously published under Q263592



SYMPTOMS
The Microsoft MSXML 2.0 parser forces datatype validation even when data is not being validated. For example, in an XSL stylesheet that outputs a datatyped node, if the value of the node is specified using the  tag, and the datatype of the node is number, then the parser generates an error.



RESOLUTION
The MSXML parser, version 2.5 (5.0.2920.0), corrects this problem.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem has been fixed in Version 2.5 of the MSXML parser. To download the latest version of the parser, visit http://msdn.microsoft.com/xml/default.asp.



Steps to Reproduce Behavior
To reproduce this problem, do the following:   Insert the following code into a new text file, and save the file as test.xml:     Next, insert the following code into another new text file, and save the file in the same location as the previous file, as test.xsl:     <xsl:for-each select=&quot;items/item&quot;> <value dt:dt=&quot;number&quot;><xsl:value-of select=&quot;@value&quot;/> </xsl:for-each> </xsl:template> </xsl:stylesheet> </li> Browse to the test.xml file using a Microsoft Internet Explorer Web browser on a computer with version 2.0 of the MSXML parser installed. Note that a parse error is generated because the datatype of the value tag is specified to be a number, and the contents of the node is another tag. The value-of tag should generate a numeric value in the output; instead, the parser generates an error.</li></ol>

Keywords: kbbug kbfix kbmsxmlnosweep KB263592

-

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

© Microsoft Corporation. All rights reserved.