|
// xml code <?xml version="1.0"?> <root> Welcome to <HBBlog>! </root>
// flash code var txt_xml:XML = new XML(); txt_xml.ignoreWhite = true; txt_xml.onLoad = function(success) { if (success) { root= txt_xml.firstChild.firstChild; trace(root); // Welcome to <HBBlog!> rootValue = root.nodeValue; trace(rootValue); // Welcome to <HBBlog!> trace(root == rootValue) // false } }; txt_xml.load("txt.xml"); |