<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ag>
<item id="5">abc</item>
<item id = "6">efg</item>
</ag>
i want to get the value 5 and abc.
in as2.0,we can get them by the following code:
var myxml = new XML();
myxml.ignoreWhite = true;
myxml. {
if (a) {
trace( myxml.firstChild.firstChild.attributes.id);
trace(myxml.firstChild.firstChild.firstChild)
}
};
System.useCodepage = true;
myxml.load ("test.xml");
but i don't know how to get the values in e4x..
i only cant get the id by useing ag.item.it..
thank u all。
--
从那一天起,没有改变的依然没有改变
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
