Here are two identical XML files:
Code: Select all
<root>
<leaf>true</leaf>
</root>
Code: Select all
<root>
<leaf>false</leaf>
</root>
Code: Select all
nodeList=info.documentElement.getElementsByTagName("leaf")
leafValue=nodeList.item(0).firstChild.toString()
I strongly suspect that this is an implementation problem related to how data are typed by the underlying engine when data arrive. It reminds me strongly of PHP-style typing of incoming data with a value of "false."
I can work around this by modifying the value of leaf in my code, but I would like to verify that this is indeed a known bug that requires a work-aound.[/code]