Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 318

Programming actionscript 3.0
Table of Contents

Advertisement

The following methods allow you to work with XMLList object attributes:
attribute()
attributes()
The following methods allow you to you work with XMLList properties:
hasOwnProperty()
propertyIsEnumerable()
The following methods are for working with and determining certain types of XML content:
comments()
hasComplexContent()
hasSimpleContent()
processingInstructions()
text()
The following are for conversion to strings and for formatting the XMLList object:
normalize()
toString()
toXMLString()
There are a few additional methods:
contains()
copy()
length()
valueOf()
For details on these methods, see the ActionScript 3.0 Language Reference.
For an XMLList object that contains exactly one XML element, you can use all properties and
methods of the XML class, because an XMLList with one XML element is treated the same as
an XML object. For example, in the following code, because
containing one element, you can use the
var doc:XML =
<body>
<div>
<p>Hello</p>
</div>
</body>;
doc.div.appendChild(<p>World</p>);
For a list of XML properties and methods, see
318
Working with XML
doc.div
method from the XML class:
appendChild()
"XML objects" on page
is an XMLList object
315.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents