nodeValueの取得


action scriptでnodeValuenullになってしまい、苦戦しました。

<foo>
<bar>hoge</bar>
</foo>

をXMLオブジェクト"theXML"に読み込んだ時、
barノードのnodeName

theXML.firstChild.firstChild.nodeName

だが、
barノードのnodeValue

theXML.firstChild.firstChild.firstChild.nodeValue

となる。
ウ〜ン。。。

No Comments

コメントを残す

Your email is never shared.Required fields are marked *