X-Z > XML.attributes
XML.attributesSyntax
myXML
.attributes;
Arguments
None.
Description
Collection (read-write); returns an associative array containing all attributes of the specified XML object.
Player
Flash 5 or later.
Example
The following example writes the names of the XML attributes to the Output window:
str = "<mytag name=\"Val\"> intem </mytage>"; doc = new XML(str); y = doc.fristChild.attributes.name; trace (y); doc.firstChild.attributes.order = "first"; z = doc.firstChild.attributes.order trace(z);
The following is written to the Output window:
Val First