Microsoft KB Archive/263587

= FIX: XML DOM Node of Type Boolean Persists Incorrectly =

Article ID: 263587

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft XML Parser 2.0
 * Microsoft XML Core Services 4.0
 * Microsoft XML Core Services 4.0

-



This article was previously published under Q263587



SYMPTOMS
If an XML Document Object Model (DOM) node is of type Boolean and the type is set to True by using the DOM NodeTypedValue property, the value for the node is incorrectly persisted as -1 on a computer using version 2.0 of the MSXML parser, when it should actually be persisted as 1.



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



STATUS
This problem was corrected in 2.5 (5.0.2920.0) or later.

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, insert the following code into a new text document, and save the document as repro.htm:   1

var root = xml1.XMLDocument.documentElement; alert(root.xml); root.childNodes(0).nodeTypedValue = true; alert(root.childNodes(0).text);

On a computer with version 2.0 of the MSXML parser installed, note that the second message box produces a value of -1 rather than 1, as expected.

Keywords: kbbug kbfix kbmsxml250fix KB263587

-

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

© Microsoft Corporation. All rights reserved.