XMLList
Overview
E4X (Ecma-357) XMLList object. This is based on a deprecated/withdrawn standard.
Methods Summarized
It calls the method attribute of each object in this XMLList and returns the results in order in an XMLList.
Calls the method attributes of each object in this XMLList and returns an XMLList with the results in order.
Calls the method child of each XML object in this XMLList object to return an XMLList with the matching children in order.
Returns an XMLList with the children of all XML objects in this XMLList.
Returns an XMLList with all the comment child nodes of XML objects in this XMLList in order.
Returns true if there is (at least) one XML object in the list that compares equal to the value
Returns a deep copy of the XMLList it is called on.
Returns an XMLList with all of the matching descendants of all XML objects.
Returns an XMLList with all of the matching descendants of all XML objects.
Returns an XMLList with the matching element children of all XML objects in this XMLList.
Returns true if the XMLList contains exactly one XML object which has complex content or if the XMLList contains several XML objects.
Returns true if the XMLList object has a property of that name and false otherwise.
Returns true if the XMLList is empty or contains exactly one XML object which has simple content or contains no elements at all.
Returns the number of XML objects this XMLList contains.
Returns the XMLList object it is called on after joining adjacent text nodes and removing empty text nodes.
Returns the common parent of all XML objects in this XMLList if all those objects have the same parent.
Returns an XMLList with all the matching processing instruction child nodes of all XML objects in this XMLList.
Returns an XMLList with all the matching processing instruction child nodes of all XML objects in this XMLList.
Returns true if the property name converted to a number is greater than or equal to 0 and less than the length of this XMLList.
Returns an XMLList containing all the text child nodes of all the XML objects contained in this XMLList.
Returns a string representation of the XMLList
Returns the concatenation of toXMLString called on each XML object.
Simply returns the XMLList object it is called on.
Methods Detailed
attribute(attributeName)
It calls the method attribute of each object in this XMLList and returns the results in order in an XMLList.
Parameters
String attributeName ;
Returns: XMLList
Sample
attributes()
Calls the method attributes of each object in this XMLList and returns an XMLList with the results in order.
Returns: XMLList
Sample
child(propertyName)
Calls the method child of each XML object in this XMLList object to return an XMLList with the matching children in order.
Parameters
String propertyName ;
Returns: XMLList
Sample
children()
Returns an XMLList with the children of all XML objects in this XMLList.
Returns: XMLList
Sample
comments()
Returns an XMLList with all the comment child nodes of XML objects in this XMLList in order.
Returns: XMLList
Sample
contains(value)
Returns true if there is (at least) one XML object in the list that compares equal to the value
Parameters
Object value ;
Returns: Boolean
Sample
copy()
Returns a deep copy of the XMLList it is called on.
Returns: XMLList
Sample
descendants()
Returns an XMLList with all of the matching descendants of all XML objects.
Returns: XMLList
Sample
descendants(name)
Returns an XMLList with all of the matching descendants of all XML objects.
Parameters
String name ;
Returns: XMLList
Sample
elements(name)
Returns an XMLList with the matching element children of all XML objects in this XMLList.
Parameters
String name ;
Returns: XMLList
Sample
hasComplexContent()
Returns true if the XMLList contains exactly one XML object which has complex content or if the XMLList contains several XML objects.
Returns: Boolean
Sample
hasOwnProperty(propertyName)
Returns true if the XMLList object has a property of that name and false otherwise.
Parameters
String propertyName ;
Returns: Boolean
Sample
hasSimpleContent()
Returns true if the XMLList is empty or contains exactly one XML object which has simple content or contains no elements at all.
Returns: Boolean
Sample
length()
Returns the number of XML objects this XMLList contains.
Returns: Number
Sample
normalize()
Returns the XMLList object it is called on after joining adjacent text nodes and removing empty text nodes.
Returns: XMLList
Sample
parent()
Returns the common parent of all XML objects in this XMLList if all those objects have the same parent.
Returns: XML
Sample
processingInstructions()
Returns an XMLList with all the matching processing instruction child nodes of all XML objects in this XMLList.
Returns: XMLList
Sample
processingInstructions(name)
Returns an XMLList with all the matching processing instruction child nodes of all XML objects in this XMLList.
Parameters
String name ;
Returns: XMLList
Sample
propertyIsEnumerable(propertyName)
Returns true if the property name converted to a number is greater than or equal to 0 and less than the length of this XMLList.
Parameters
String propertyName ;
Returns: Boolean
Sample
text()
Returns an XMLList containing all the text child nodes of all the XML objects contained in this XMLList.
Returns: XMLList
Sample
toString()
Returns a string representation of the XMLList
Returns: String
Sample
toXMLString()
Returns the concatenation of toXMLString called on each XML object. The result for each XML object is put on a separate line if XML.prettyPrinting is true.
Returns: String
Sample
valueOf()
Simply returns the XMLList object it is called on.
Returns: XMLList
Sample
Last updated