public interface E4XXMLListFunctions extends JSObjectFunctions
hasOwnProperty| Modifier and Type | Method and Description |
|---|---|
E4XXMLList |
attribute(JSString attributeName)
function attribute(attributeName) calls the attribute method of each XML object in this XMLList object passing attributeName as a parameter and returns an XMLList containing the results in order.
|
E4XXMLList |
attributes()
function attributes() calls the attributes() method of each XML object in this XMLList object and returns an XMLList containing the results in order.
|
E4XXMLList |
child(JSString propertyName)
function child(propertyName) calls the child() method of each XML object in this XMLList object and returns an XMLList containing the results in order.
|
E4XXMLList |
children()
function children() calls the children() method of each XML object in this XMLList object and returns an XMLList containing the results concatenated in order.
|
E4XXMLList |
comments()
function comments() calls the comments method of each XML object in this XMLList object and returns an XMLList containing the results concatenated in order.
|
JSBoolean |
contains(E4XXML value)
function contains(value) returns a boolean value indicating whether this XMLList object contains an XML object that compares equal to the given value.
|
JSBoolean |
copy()
function copy() returns a deep copy of the XMLList object.
|
E4XXMLList |
descendants(JSString name)
function descendants(name) calls the descendants method of each XML object in this XMLList object with the optional parameter name (or the string "*" if name is omitted) and returns an XMLList containing the results concatenated in order.
|
E4XXMLList |
elements(JSString name)
function elements(name) calls the elements method of each XML object in this XMLList object passing the optional parameter name (or "*" if it is omitted) and returns an XMList containing the results in order.
|
JSBoolean |
hasComplexContent()
function hasComplexContent() returns a Boolean value indicating whether this XMLList object contains complex content.
|
JSBoolean |
hasSimpleContent()
function hasSimpleContent() returns a Boolean value indicating whether this XMLList contains simple content.
|
JSNumber |
length()
function length() returns the number of properties in this XMLList object.
|
E4XXMLList |
normalize()
function normalize() 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.
|
E4XXML |
parent()
function parent() If all items in this XMLList object have the same parent, it is returned.
|
E4XXMLList |
processingInstructions(JSString name)
function processingInstructions(name) calls the processingInstructions method of each XML object in this XMLList object passing the optional parameter name (or "*" if it is omitted) and returns an XMList containing the results in order.
|
E4XXMLList |
text()
function text() calls the text method of each XML object contained in this XMLList object and returns an XMLList containing the results concatenated in order.
|
JSString |
toXMLString()
function toXMLString() returns the toXMLString() method returns an XML encoded string representation of this XML object.
|
hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOfE4XXMLList attribute(JSString attributeName)
attributeName - name of attribute to find.XMLList,
XML.attribute();E4XXMLList attributes()
XMLList,
XML.attributes();E4XXMLList child(JSString propertyName)
propertyName - name of XML element to find.XMLList,
XML.child();E4XXMLList children()
Example
// get all the children of all the items in the order var allitemchildren = order.item.children(); // get all grandchildren of the order that have the name price var grandChildren = order.children().price;
XMLList,
XML.children();E4XXMLList comments()
XMLList,
XML.comments();JSBoolean contains(E4XXML value)
value - XML object to test.XMLListJSBoolean copy()
XMLListE4XXMLList descendants(JSString name)
name - optional parameter to identity the decendants. If omitted all decendants are returned.XMLList,
XML.descendants();E4XXMLList elements(JSString name)
name - optional parameter to identity the element. If omitted all children are returned.XMLList,
XML.elements();JSBoolean hasComplexContent()
XMLListJSBoolean hasSimpleContent()
XMLListJSNumber length()
Example
for (var i = 0; i < e..name.length(); i++) {
print("Employee name:" + e..name[i]);
}
XMLListE4XXMLList normalize()
XMLListE4XXML parent()
XMLListE4XXMLList processingInstructions(JSString name)
name - optional node name filter.XMLList,
XML.processingInstructions();E4XXMLList text()
XMLList,
XML.text();JSString toXMLString()
XMLList