U-X > XML.attributes |
![]() ![]() ![]() |
XML.attributes
Availability
Flash Player 5.
Usage
myXML
.attributes
Parameters
None.
Returns
Nothing.
Description
Collection (read-write); returns an associative array containing all attributes of the specified XML object.
Example
The following example writes the names of the XML attributes to the Output window.
str = "<mytag name=\"Val\"> intem </mytag>"; doc = new XML(str); y = doc.firstChild.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
![]() ![]() ![]() |