An XMLList object is an ordered collection of properties.
A XMLList object represents a XML document, an XML fragment,
or an arbitrary collection of XML objects.
An individual XML object is the same thing as an XMLList
containing only that XML object. All operations available
for the XML object are also available for an XMLList object
that contains exactly one XML object.
Puts all text nodes in this XMLList, all the XML objects it contains and the descendents of all the XML objects it contains into a normal form by merging adjacent text nodes and eliminating empty text nodes.
Returns a Boolean indicating whether the specified property will be included in the set of properties iterated over when this XML object is used in a for..in statement.
Returns an XML-encoded String representation of the XMLList object by calling the toXMLString method on each property contained within this XMLList object.
Calls the elements(name) method in each of the XML objects in
this XMLList object and returns an XMLList containing the results
concatenated in order. name can be a
QName, String, or any other data type that will be converted
to a string prior to performing the search for elements of that
name.
To list all objects use * for the value of name.
Parameters:
name - the name of the elements to return.
Returns:
a list of all elements of the XML objects in this XMLList
constrained by the name parameter.
Returns a Boolean value indicating whether
this XMLList object contains complex content. An XMLList object is considered
to contain complex content if it is not empty, contains a single XML item
with complex content or contains elements.
Returns:
a Boolean value indicating whether this XMLList object contains complex content.
Returns a Boolean value indicating whether this XML object contains
simple content. An XMLList object is considered to contain simple
content if it is empty, contains a single XML item with simple
content or contains no elements.
Returns:
a Boolean value indicating whether this XML object contains
simple content.
Puts all text nodes in this XMLList, all the XML objects it
contains and the descendents of all the XML objects it
contains into a normal form by merging adjacent text nodes
and eliminating empty text nodes.
Returns a Boolean indicating whether the specified
property will be included in the set of properties iterated
over when this XML object is used in a for..in statement.
Parameters:
property - the property to test.
Returns:
true when the property can be iterated in a for..in
statement, false otherwise.
Returns an XML-encoded String representation of the XMLList object
by calling the toXMLString method on each property contained
within this XMLList object.
Returns:
an XML-encoded String representation of the XMLList object
by calling the toXMLString method on each property contained
within this XMLList object.