am i right?
No, you can use E4X to get the names and values of XML
attributes. Here is an example:
var people:XML =
people
person firstName=Gordon
lastName=Smith/
person firstName=Bod
lastName=Unknown/
/people;
// Loop over the person elements.
for each (var person:XML in people..person)
{
// Loop over the attributes of a
person, outputting the name and value of each one.
var attributes:XMLList = [EMAIL PROTECTED];
for each (var attribute:XML in attributes)
{
trace(attribute.name(), attribute);
}
}
- Gordon
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of bhaq1972
Sent: Friday, July 14, 2006 4:10
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 final
XML attributes
Hi
just wondered, the XML.attributes() method only list the values of all
the attributes of the specified node.
how can i get a list of name/value pairs of all the attributes.
this is possible using XmlDocument class but not with the new XML
class.
am i right?
thanks
Bod
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___