Child pages
  • XMLList

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Hidden
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE


HTML Table
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#attribute(attributeName)
It calls the method attribute of each object in this XMLList and returns the results in order
in an XMLList.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#attributes()
Calls the method attributes of each object in this XMLList and returns an XMLList with
the results in order.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#child(propertyName)
Calls the method child of each XML object in this XMLList object to return an XMLList
with the matching children in order.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#children()
Returns an XMLList with the children of all XML objects in this XMLList.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#comments()
Returns an XMLList with all the comment child nodes of XML objects in this XMLList in order.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#contains(value)
Returns true if there is (at least) one XML object in the list that compares equal to the value
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#copy()
Returns a deep copy of the XMLList it is called on.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#descendants([name])
Returns an XMLList with all of the matching descendants of all XML objects.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#elements(name)
Returns an XMLList with the matching element children of all XML objects in this XMLList.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#hasComplexContent()
Returns true if the XMLList contains exactly one XML object which has complex content or if
the XMLList contains several XML objects.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#hasOwnProperty(propertyName)
Returns true if the XMLList object has a property of that name and false otherwise.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#hasSimpleContent()
Returns true if the XMLList is empty or contains exactly one XML object which has simple
content or contains no elements at all.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#length()
Returns the number of XML objects this XMLList contains.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#normalize()
Returns the XMLList object it is called on after joining adjacent text nodes
and removing empty text nodes.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XML
Table Cell (td)
#parent()
Returns the common parent of all XML objects in this XMLList if all those objects
have the same parent.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#processingInstructions([name])
Returns an XMLList with all the matching processing instruction child nodes of all
XML objects in this XMLList.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#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.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#text()
Returns an XMLList containing all the text child nodes of all the XML objects contained in this XMLList.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#toString()
Returns a string representation of the XMLList
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#toXMLString()
Returns the concatenation of toXMLString called on each XML object.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
XMLList
Table Cell (td)
#valueOf()
Simply returns the XMLList object it is called on.

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idattribute
classnode
Table Row (tr)
idname
Table Cell (td)
attribute
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
attribute
Span
stylefloat: left;
idiets
(attributeName)
Table Row (tr)
iddes
Table Cell (td)
It calls the method attribute of each object in this XMLList and returns the results in order
in an XMLList.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} attributeName
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.attribute(attributeName)
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idattributes
classnode
Table Row (tr)
idname
Table Cell (td)
attributes
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
attributes
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Calls the method attributes of each object in this XMLList and returns an XMLList with
the results in order.
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.attributes()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idchild
classnode
Table Row (tr)
idname
Table Cell (td)
child
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
child
Span
stylefloat: left;
idiets
(propertyName)
Table Row (tr)
iddes
Table Cell (td)
Calls the method child of each XML object in this XMLList object to return an XMLList
with the matching children in order.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} propertyName
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.child(propertyName)
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idchildren
classnode
Table Row (tr)
idname
Table Cell (td)
children
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
children
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns an XMLList with the children of all XML objects in this XMLList.
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.children()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcomments
classnode
Table Row (tr)
idname
Table Cell (td)
comments
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
comments
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns an XMLList with all the comment child nodes of XML objects in this XMLList in order.
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.comments()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcontains
classnode
Table Row (tr)
idname
Table Cell (td)
contains
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
contains
Span
stylefloat: left;
idiets
(value)
Table Row (tr)
iddes
Table Cell (td)
Returns true if there is (at least) one XML object in the list that compares equal to the value
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Object} value
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.contains(value)
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcopy
classnode
Table Row (tr)
idname
Table Cell (td)
copy
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
copy
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns a deep copy of the XMLList it is called on.
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.copy()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
iddescendants
classnode
Table Row (tr)
idname
Table Cell (td)
descendants
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
descendants
Span
stylefloat: left;
idiets
([name])
Table Row (tr)
iddes
Table Cell (td)
Returns an XMLList with all of the matching descendants of all XML objects.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} [name]
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.descendants([name])
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idelements
classnode
Table Row (tr)
idname
Table Cell (td)
elements
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
elements
Span
stylefloat: left;
idiets
(name)
Table Row (tr)
iddes
Table Cell (td)
Returns an XMLList with the matching element children of all XML objects in this XMLList.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} name
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.elements([name])
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idhasComplexContent
classnode
Table Row (tr)
idname
Table Cell (td)
hasComplexContent
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
hasComplexContent
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns true if the XMLList contains exactly one XML object which has complex content or if
the XMLList contains several XML objects.
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.hasComplexContent()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idhasOwnProperty
classnode
Table Row (tr)
idname
Table Cell (td)
hasOwnProperty
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
hasOwnProperty
Span
stylefloat: left;
idiets
(propertyName)
Table Row (tr)
iddes
Table Cell (td)
Returns true if the XMLList object has a property of that name and false otherwise.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} propertyName
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.hasOwnProperty(propertyName)
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idhasSimpleContent
classnode
Table Row (tr)
idname
Table Cell (td)
hasSimpleContent
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
hasSimpleContent
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns true if the XMLList is empty or contains exactly one XML object which has simple
content or contains no elements at all.
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.hasSimpleContent()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idlength
classnode
Table Row (tr)
idname
Table Cell (td)
length
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
length
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns the number of XML objects this XMLList contains.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.length()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idnormalize
classnode
Table Row (tr)
idname
Table Cell (td)
normalize
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
normalize
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns the XMLList object it is called on after joining adjacent text nodes
and removing empty text nodes.
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.normalize()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idparent
classnode
Table Row (tr)
idname
Table Cell (td)
parent
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XML
Span
stylefloat: left; font-weight: bold;
idiets
parent
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns the common parent of all XML objects in this XMLList if all those objects
have the same parent.
Table Row (tr)
idret
Table Cell (td)
Returns
XML
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.parent()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idprocessingInstructions
classnode
Table Row (tr)
idname
Table Cell (td)
processingInstructions
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
processingInstructions
Span
stylefloat: left;
idiets
([name])
Table Row (tr)
iddes
Table Cell (td)
Returns an XMLList with all the matching processing instruction child nodes of all
XML objects in this XMLList.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} [name]
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.processingInstructions([name])
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idpropertyIsEnumerable
classnode
Table Row (tr)
idname
Table Cell (td)
propertyIsEnumerable
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
propertyIsEnumerable
Span
stylefloat: left;
idiets
(propertyName)
Table Row (tr)
iddes
Table Cell (td)
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} propertyName
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.propertyIsEnumerable(propertyName)
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idtext
classnode
Table Row (tr)
idname
Table Cell (td)
text
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
text
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns an XMLList containing all the text child nodes of all the XML objects contained in this XMLList.
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.text()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idtoString
classnode
Table Row (tr)
idname
Table Cell (td)
toString
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
toString
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns a string representation of the XMLList
Table Row (tr)
idret
Table Cell (td)
Returns
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.toString()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idtoXMLString
classnode
Table Row (tr)
idname
Table Cell (td)
toXMLString
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
toXMLString
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
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.
Table Row (tr)
idret
Table Cell (td)
Returns
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.toXMLString()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idvalueOf
classnode
Table Row (tr)
idname
Table Cell (td)
valueOf
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
XMLList
Span
stylefloat: left; font-weight: bold;
idiets
valueOf
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Simply returns the XMLList object it is called on.
Table Row (tr)
idret
Table Cell (td)
Returns
XMLList
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
xmlList.valueOf()
Table Row (tr)
classlastDetailRow
Table Cell (td)