Child pages
  • XML

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: sub-section:description edited
Wiki Markup
{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{hidden}
{sub-section:description|text=}*Creating an XML object from a string*
{code}var myXml = new XML('<test level=1><test2 level=2></test2></test>');{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}void{td}{td}[#addNamespace]\(namespaceToAdd)
Takes one argument which can be a string with a namespace URI or a Namespace object and adds the 
argument to the in scope namespaces of this XML object.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#appendChild]\(childToAppend)
Appends a new child at the end of this XML object's properties, the changed XML object is then returned.{td}{tr}{tbody}{tbody}{tr}{td}[XMLList]{td}{td}[#attribute]\(attributeName)
Takes a single argument with the attribute name and returns an XMLList with attributes 
matching the argument.{td}{tr}{tbody}{tbody}{tr}{td}[XMLList]{td}{td}[#attributes]\()
Returns an XMLList with the attributes of this XML object which are in no namespace.{td}{tr}{tbody}{tbody}{tr}{td}[XMLList]{td}{td}[#child]\(propertyName)
Returns an XMLList with children matching the property name.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#childIndex]\()
If the XML object has no parent then the special number NaN is returned, otherwise the ordinal 
position the object has in the context of its parent is returned.{td}{tr}{tbody}{tbody}{tr}{td}[XMLList]{td}{td}[#children]\()
Returns an XMLList with the child nodes of this XML object.{td}{tr}{tbody}{tbody}{tr}{td}[XMLList]{td}{td}[#comments]\()
Returns an XMLList with the comment nodes which are children of this XML object.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#contains]\(value)
Calling xmlObject.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#copy]\()
Returns a deep copy of the XML object it is called on where the internal parent property is set to null{td}{tr}{tbody}{tbody}{tr}{td}[XMLList]{td}{td}[#descendants]\(name)
Returns an XMLList with the descendants matching the passed name argument or with all descendants 
if no argument is passed.{td}{tr}{tbody}{tbody}{tr}{td}[XMLList]{td}{td}[#elements]\(name)
Takes one optional argument, the name of elements you are looking for, and returns an XMLList with 
all matching child elements.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#hasComplexContent]\()
Returns false for XML objects of node kind 'text', 'attribute', 'comment', and 'processing-instruction'.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#hasOwnProperty]\(propertyName)
Returns true if the XML object the method is called on has a property of that name.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#hasSimpleContent]\()
Returns true for XML objects of node kind text or attribute.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#inScopeNamespaces]\()
Returns an array of Namespace objects representing the namespace that are in scope for this XML object.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#insertChildAfter]\(childToInserAfter, childToInsert)
Takes two arguments, an existing child to insert after and the new child to be inserted.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#insertChildBefore]\(childToInsertBefore, childToInsert)
Takes two arguments, an existing child to insert before and the new child to be inserted.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#length]\()
This always returns 1.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#localName]\()
returns the local name part if the XML object has a name.{td}{tr}{tbody}{tbody}{tr}{td}[QName]{td}{td}[#name]\()
Returns the qualified name (a QName object) of the XML object it is called{td}{tr}{tbody}{tbody}{tr}{td}[Namespace]{td}{td}[#namespace]\(prefix)
If no argument is passed to the method then it returns the namespace associated with the qualified 
name of this XML object.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#namespaceDeclarations]\()
Returns an array with the namespace declarations associated with the XML object it is called on.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#nodeKind]\()
Returns a string denoting the kind of node this XML object represents.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#normalize]\()
Returns this XML object after normalizing all text content.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#parent]\()
Returns the parent XML object of this XML object or null if there is no parent.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#prependChild]\(childToPrepend)
Iinserts the given value as the first child of the XML object and returns the XML object.{td}{tr}{tbody}{tbody}{tr}{td}[XMLList]{td}{td}[#processingInstructions]\(name)
If no argument is passed in then the method returns an XMLList with all the children of the XML 
object which are processing instructions.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#propertyIsEnumerable]\(propertyName)
Returns true if the property name is '0' and false otherwise.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#removeNamespace]\(namespace)
Removes the namespace from the in scope namespaces of this XML object if the namespace 
is not used for the qualified name of the object or its attributes.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#replace]\(propertyName, replacementValue)
Takes two arguments, the property name of the property / properties to be replaced, and the 
value to replace the properties.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#setChildren]\(value)
Replaces all children of the XML object with this value.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setLocalName]\(name)
Changes the local name of this XML object to the name passed in.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setName]\(name)
Replaces the name of this XML object with the name passed in.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setNamespace]\(namespace)
Changes the namespace associated with the name of this XML object to the new namespace.{td}{tr}{tbody}{tbody}{tr}{td}[XMLList]{td}{td}[#text]\()
Returns an XMLList with all the children of this XML object that represent text nodes.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#toString]\()
Returns a convenient string value of this XML object.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#toXMLString]\()
Returns a string with the serialized XML markup for this XML object.{td}{tr}{tbody}{tbody}{tr}{td}[XML]{td}{td}[#valueOf]\()
The method simply returns the XML object it is called on.{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=E372A471-82E6-4191-B58C-2859BD45EA2E}{tr:id=name}{td}h6.addNamespace{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addNamespace{span}{span:id=iets|style=float: left;}\(namespaceToAdd){span}{td}{tr}{tr:id=des}{td}{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_des|text=|trigger=button}{sub-section}{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_des|trigger=none|class=sIndent}Takes one argument which can be a string with a namespace URI or a Namespace object and adds the 
argument to the in scope namespaces of this XML object.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_prs|trigger=none}namespaceToAdd
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_ret|text=|trigger=button}{sub-section}{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_see|text=|trigger=button}{sub-section}{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_see|text=|trigger=button}{sub-section}{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_sam|text=|trigger=button}{sub-section}{sub-section:E372A471-82E6-4191-B58C-2859BD45EA2E_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.addNamespace(namespaceToAdd)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B8255041-0D40-4802-9C66-3672A05A3E54}{tr:id=name}{td}h6.appendChild{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}appendChild{span}{span:id=iets|style=float: left;}\(childToAppend){span}{td}{tr}{tr:id=des}{td}{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_des|text=|trigger=button}{sub-section}{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_des|trigger=none|class=sIndent}Appends a new child at the end of this XML object's properties, the changed XML object is then returned.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_prs|trigger=none}childToAppend
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_ret|text=|trigger=button}{sub-section}{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_see|text=|trigger=button}{sub-section}{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_see|text=|trigger=button}{sub-section}{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_sam|text=|trigger=button}{sub-section}{sub-section:B8255041-0D40-4802-9C66-3672A05A3E54_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.appendChild(childToAppend)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=639A5099-E277-462B-8AE4-5075C80543CB}{tr:id=name}{td}h6.attribute{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XMLList]{span}{span:id=iets|style=float: left; font-weight: bold;}attribute{span}{span:id=iets|style=float: left;}\(attributeName){span}{td}{tr}{tr:id=des}{td}{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_des|text=|trigger=button}{sub-section}{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_des|trigger=none|class=sIndent}Takes a single argument with the attribute name and returns an XMLList with attributes 
matching the argument.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_prs|trigger=none}attributeName
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_ret|text=|trigger=button}{sub-section}{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_ret|trigger=none|class=sIndent}[XMLList]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_see|text=|trigger=button}{sub-section}{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_see|text=|trigger=button}{sub-section}{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_sam|text=|trigger=button}{sub-section}{sub-section:639A5099-E277-462B-8AE4-5075C80543CB_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.attribute(attributeName)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5C0B7466-BE86-427B-997D-2EE84884F14C}{tr:id=name}{td}h6.attributes{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XMLList]{span}{span:id=iets|style=float: left; font-weight: bold;}attributes{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_des|text=|trigger=button}{sub-section}{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_des|trigger=none|class=sIndent}Returns an XMLList with the attributes of this XML object which are in no namespace.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_ret|text=|trigger=button}{sub-section}{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_ret|trigger=none|class=sIndent}[XMLList]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_see|text=|trigger=button}{sub-section}{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_see|text=|trigger=button}{sub-section}{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_sam|text=|trigger=button}{sub-section}{sub-section:5C0B7466-BE86-427B-997D-2EE84884F14C_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.attributes()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D4839BE5-5895-485D-B31D-4E08B3A54C9F}{tr:id=name}{td}h6.child{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XMLList]{span}{span:id=iets|style=float: left; font-weight: bold;}child{span}{span:id=iets|style=float: left;}\(propertyName){span}{td}{tr}{tr:id=des}{td}{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_des|text=|trigger=button}{sub-section}{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_des|trigger=none|class=sIndent}Returns an XMLList with children matching the property name.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_prs|trigger=none}propertyName
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_ret|text=|trigger=button}{sub-section}{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_ret|trigger=none|class=sIndent}[XMLList]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_see|text=|trigger=button}{sub-section}{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_see|text=|trigger=button}{sub-section}{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_sam|text=|trigger=button}{sub-section}{sub-section:D4839BE5-5895-485D-B31D-4E08B3A54C9F_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.child(childPropertyName)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=99E811D6-F6E0-44AE-AAE2-ED8882C5231F}{tr:id=name}{td}h6.childIndex{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}childIndex{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_des|text=|trigger=button}{sub-section}{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_des|trigger=none|class=sIndent}If the XML object has no parent then the special number NaN is returned, otherwise the ordinal 
position the object has in the context of its parent is returned.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_ret|text=|trigger=button}{sub-section}{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_see|text=|trigger=button}{sub-section}{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_see|text=|trigger=button}{sub-section}{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_sam|text=|trigger=button}{sub-section}{sub-section:99E811D6-F6E0-44AE-AAE2-ED8882C5231F_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.childIndex()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D62EBAE7-7B34-4E0D-987C-E8CA31569411}{tr:id=name}{td}h6.children{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XMLList]{span}{span:id=iets|style=float: left; font-weight: bold;}children{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_des|text=|trigger=button}{sub-section}{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_des|trigger=none|class=sIndent}Returns an XMLList with the child nodes of this XML object.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_ret|text=|trigger=button}{sub-section}{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_ret|trigger=none|class=sIndent}[XMLList]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_see|text=|trigger=button}{sub-section}{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_see|text=|trigger=button}{sub-section}{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_sam|text=|trigger=button}{sub-section}{sub-section:D62EBAE7-7B34-4E0D-987C-E8CA31569411_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.children()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=05C031D3-DCD1-4C88-8816-534C4E20F477}{tr:id=name}{td}h6.comments{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XMLList]{span}{span:id=iets|style=float: left; font-weight: bold;}comments{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_des|text=|trigger=button}{sub-section}{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_des|trigger=none|class=sIndent}Returns an XMLList with the comment nodes which are children of this XML object.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_ret|text=|trigger=button}{sub-section}{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_ret|trigger=none|class=sIndent}[XMLList]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_see|text=|trigger=button}{sub-section}{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_see|text=|trigger=button}{sub-section}{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_sam|text=|trigger=button}{sub-section}{sub-section:05C031D3-DCD1-4C88-8816-534C4E20F477_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.comments()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B635BAC6-4729-47B5-BC6F-0B3A36672BB0}{tr:id=name}{td}h6.contains{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}contains{span}{span:id=iets|style=float: left;}\(value){span}{td}{tr}{tr:id=des}{td}{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_des|text=|trigger=button}{sub-section}{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_des|trigger=none|class=sIndent}Calling xmlObject.contains(value) yields the same result as the equality comparison xmlObject == value{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_prs|trigger=none}value
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_ret|text=|trigger=button}{sub-section}{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_see|text=|trigger=button}{sub-section}{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_see|text=|trigger=button}{sub-section}{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_sam|text=|trigger=button}{sub-section}{sub-section:B635BAC6-4729-47B5-BC6F-0B3A36672BB0_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.contains(value)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2472393F-0653-4074-89C0-B002926AA174}{tr:id=name}{td}h6.copy{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}copy{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:2472393F-0653-4074-89C0-B002926AA174_des|text=|trigger=button}{sub-section}{sub-section:2472393F-0653-4074-89C0-B002926AA174_des|trigger=none|class=sIndent}Returns a deep copy of the XML object it is called on where the internal parent property is set to null{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:2472393F-0653-4074-89C0-B002926AA174_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2472393F-0653-4074-89C0-B002926AA174_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2472393F-0653-4074-89C0-B002926AA174_ret|text=|trigger=button}{sub-section}{sub-section:2472393F-0653-4074-89C0-B002926AA174_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2472393F-0653-4074-89C0-B002926AA174_see|text=|trigger=button}{sub-section}{sub-section:2472393F-0653-4074-89C0-B002926AA174_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:2472393F-0653-4074-89C0-B002926AA174_see|text=|trigger=button}{sub-section}{sub-section:2472393F-0653-4074-89C0-B002926AA174_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:2472393F-0653-4074-89C0-B002926AA174_sam|text=|trigger=button}{sub-section}{sub-section:2472393F-0653-4074-89C0-B002926AA174_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.copy()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=74F4D1A7-A352-4339-9C06-B7C3CDD2A318}{tr:id=name}{td}h6.descendants{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XMLList]{span}{span:id=iets|style=float: left; font-weight: bold;}descendants{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_des|text=|trigger=button}{sub-section}{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_des|trigger=none|class=sIndent}Returns an XMLList with the descendants matching the passed name argument or with all descendants 
if no argument is passed.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_prs|trigger=none}\[name\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_ret|text=|trigger=button}{sub-section}{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_ret|trigger=none|class=sIndent}[XMLList]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_see|text=|trigger=button}{sub-section}{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_see|text=|trigger=button}{sub-section}{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_sam|text=|trigger=button}{sub-section}{sub-section:74F4D1A7-A352-4339-9C06-B7C3CDD2A318_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.descendants([name])
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=31A69893-05E3-49AE-B927-10996513E58A}{tr:id=name}{td}h6.elements{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XMLList]{span}{span:id=iets|style=float: left; font-weight: bold;}elements{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:31A69893-05E3-49AE-B927-10996513E58A_des|text=|trigger=button}{sub-section}{sub-section:31A69893-05E3-49AE-B927-10996513E58A_des|trigger=none|class=sIndent}Takes one optional argument, the name of elements you are looking for, and returns an XMLList with 
all matching child elements.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:31A69893-05E3-49AE-B927-10996513E58A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:31A69893-05E3-49AE-B927-10996513E58A_prs|trigger=none}\[name\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:31A69893-05E3-49AE-B927-10996513E58A_ret|text=|trigger=button}{sub-section}{sub-section:31A69893-05E3-49AE-B927-10996513E58A_ret|trigger=none|class=sIndent}[XMLList]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:31A69893-05E3-49AE-B927-10996513E58A_see|text=|trigger=button}{sub-section}{sub-section:31A69893-05E3-49AE-B927-10996513E58A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:31A69893-05E3-49AE-B927-10996513E58A_see|text=|trigger=button}{sub-section}{sub-section:31A69893-05E3-49AE-B927-10996513E58A_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:31A69893-05E3-49AE-B927-10996513E58A_sam|text=|trigger=button}{sub-section}{sub-section:31A69893-05E3-49AE-B927-10996513E58A_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.elements([name])
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D4EA899F-3A6F-4ED2-8C13-E4771A3D337F}{tr:id=name}{td}h6.hasComplexContent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}hasComplexContent{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_des|text=|trigger=button}{sub-section}{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_des|trigger=none|class=sIndent}Returns false for XML objects of node kind 'text', 'attribute', 'comment', and 'processing-instruction'.
For objects of kind 'element' it checks whether the element has at least one child element.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_ret|text=|trigger=button}{sub-section}{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_see|text=|trigger=button}{sub-section}{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_see|text=|trigger=button}{sub-section}{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_sam|text=|trigger=button}{sub-section}{sub-section:D4EA899F-3A6F-4ED2-8C13-E4771A3D337F_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.hasComplexContent()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6105935E-21EA-4703-8D59-F267A07C1937}{tr:id=name}{td}h6.hasOwnProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}hasOwnProperty{span}{span:id=iets|style=float: left;}\(propertyName){span}{td}{tr}{tr:id=des}{td}{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_des|text=|trigger=button}{sub-section}{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_des|trigger=none|class=sIndent}Returns true if the XML object the method is called on has a property of that name.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_prs|trigger=none}propertyName
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_ret|text=|trigger=button}{sub-section}{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_see|text=|trigger=button}{sub-section}{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_see|text=|trigger=button}{sub-section}{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_sam|text=|trigger=button}{sub-section}{sub-section:6105935E-21EA-4703-8D59-F267A07C1937_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.hasOwnProperty(propertyName)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6BE00D34-C840-4155-899A-F7B3A791F46B}{tr:id=name}{td}h6.hasSimpleContent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}hasSimpleContent{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_des|text=|trigger=button}{sub-section}{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_des|trigger=none|class=sIndent}Returns true for XML objects of node kind text or attribute. For XML objects of node kind 
element it returns true if the element has no child elements and false otherwise.
For other node kinds (comment, processing instruction) the method always returns false.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_ret|text=|trigger=button}{sub-section}{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_see|text=|trigger=button}{sub-section}{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_see|text=|trigger=button}{sub-section}{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_sam|text=|trigger=button}{sub-section}{sub-section:6BE00D34-C840-4155-899A-F7B3A791F46B_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.hasSimpleContent()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=87F807B9-CC29-4755-AB4F-5829BA211821}{tr:id=name}{td}h6.inScopeNamespaces{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Array]{span}{span:id=iets|style=float: left; font-weight: bold;}inScopeNamespaces{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_des|text=|trigger=button}{sub-section}{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_des|trigger=none|class=sIndent}Returns an array of Namespace objects representing the namespace that are in scope for this XML object.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_ret|text=|trigger=button}{sub-section}{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_see|text=|trigger=button}{sub-section}{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_see|text=|trigger=button}{sub-section}{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_sam|text=|trigger=button}{sub-section}{sub-section:87F807B9-CC29-4755-AB4F-5829BA211821_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.inScopeNamespaces()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C7F6BB80-79C8-41E1-A233-67FDE078D80A}{tr:id=name}{td}h6.insertChildAfter{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}insertChildAfter{span}{span:id=iets|style=float: left;}\(childToInserAfter, childToInsert){span}{td}{tr}{tr:id=des}{td}{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_des|text=|trigger=button}{sub-section}{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_des|trigger=none|class=sIndent}Takes two arguments, an existing child to insert after and the new child to be inserted.
If the first argument is null then the second argument is inserted as the first child of this XML.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_prs|trigger=none}childToInserAfter
childToInsert
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_ret|text=|trigger=button}{sub-section}{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_see|text=|trigger=button}{sub-section}{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_see|text=|trigger=button}{sub-section}{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_sam|text=|trigger=button}{sub-section}{sub-section:C7F6BB80-79C8-41E1-A233-67FDE078D80A_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.insertChildAfter(childToInsertAfter, childToInsert)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=61E7B895-3827-4CEB-BD92-2F1C13073BA8}{tr:id=name}{td}h6.insertChildBefore{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}insertChildBefore{span}{span:id=iets|style=float: left;}\(childToInsertBefore, childToInsert){span}{td}{tr}{tr:id=des}{td}{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_des|text=|trigger=button}{sub-section}{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_des|trigger=none|class=sIndent}Takes two arguments, an existing child to insert before and the new child to be inserted.
If the first argument is null then the child is inserted as the last child.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_prs|trigger=none}childToInsertBefore
childToInsert
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_ret|text=|trigger=button}{sub-section}{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_see|text=|trigger=button}{sub-section}{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_see|text=|trigger=button}{sub-section}{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_sam|text=|trigger=button}{sub-section}{sub-section:61E7B895-3827-4CEB-BD92-2F1C13073BA8_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.insertChildBefore(childToInsertBefore, childToInsert)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6}{tr:id=name}{td}h6.length{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}length{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_des|text=|trigger=button}{sub-section}{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_des|trigger=none|class=sIndent}This always returns 1. This is done to blur the distinction between an XML object and an XMLList 
containing exactly one value.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_ret|text=|trigger=button}{sub-section}{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_see|text=|trigger=button}{sub-section}{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_see|text=|trigger=button}{sub-section}{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_sam|text=|trigger=button}{sub-section}{sub-section:A0DDFE0D-A70A-4E35-9A88-CDACFE407EF6_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.length()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DFB249EB-9436-4B7D-B892-34B4261FC29E}{tr:id=name}{td}h6.localName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}localName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_des|text=|trigger=button}{sub-section}{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_des|trigger=none|class=sIndent}returns the local name part if the XML object has a name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_ret|text=|trigger=button}{sub-section}{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_see|text=|trigger=button}{sub-section}{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_see|text=|trigger=button}{sub-section}{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_sam|text=|trigger=button}{sub-section}{sub-section:DFB249EB-9436-4B7D-B892-34B4261FC29E_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.localName()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=032056DC-18A5-4DB3-BE69-A120BE8D265B}{tr:id=name}{td}h6.name{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[QName]{span}{span:id=iets|style=float: left; font-weight: bold;}name{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_des|text=|trigger=button}{sub-section}{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_des|trigger=none|class=sIndent}Returns the qualified name (a QName object) of the XML object it is called{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_ret|text=|trigger=button}{sub-section}{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_ret|trigger=none|class=sIndent}[QName]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_see|text=|trigger=button}{sub-section}{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_see|text=|trigger=button}{sub-section}{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_sam|text=|trigger=button}{sub-section}{sub-section:032056DC-18A5-4DB3-BE69-A120BE8D265B_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.name()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1A5AEEF5-8458-4996-94F1-1DBF70C9151C}{tr:id=name}{td}h6.namespace{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Namespace]{span}{span:id=iets|style=float: left; font-weight: bold;}namespace{span}{span:id=iets|style=float: left;}\(prefix){span}{td}{tr}{tr:id=des}{td}{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_des|text=|trigger=button}{sub-section}{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_des|trigger=none|class=sIndent}If no argument is passed to the method then it returns the namespace associated with the qualified 
name of this XML object. If a prefix is passed to the method then it looks for a matching namespace 
in the in scope namespace of this XML object and returns it when found, otherwise undefined is returned.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_prs|trigger=none}\[prefix\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_ret|text=|trigger=button}{sub-section}{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_ret|trigger=none|class=sIndent}[Namespace]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_see|text=|trigger=button}{sub-section}{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_see|text=|trigger=button}{sub-section}{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_sam|text=|trigger=button}{sub-section}{sub-section:1A5AEEF5-8458-4996-94F1-1DBF70C9151C_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.namespace([prefix])
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5C3E1FCF-4225-4198-BF34-CDC121C20726}{tr:id=name}{td}h6.namespaceDeclarations{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Array]{span}{span:id=iets|style=float: left; font-weight: bold;}namespaceDeclarations{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_des|text=|trigger=button}{sub-section}{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_des|trigger=none|class=sIndent}Returns an array with the namespace declarations associated with the XML object it is called on.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_ret|text=|trigger=button}{sub-section}{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_see|text=|trigger=button}{sub-section}{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_see|text=|trigger=button}{sub-section}{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_sam|text=|trigger=button}{sub-section}{sub-section:5C3E1FCF-4225-4198-BF34-CDC121C20726_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.namespaceDeclarations()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F46E231F-5CAE-40BF-A0D5-74ABBB65188C}{tr:id=name}{td}h6.nodeKind{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}nodeKind{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_des|text=|trigger=button}{sub-section}{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_des|trigger=none|class=sIndent}Returns a string denoting the kind of node this XML object represents. Possible values: 'element', 
'attribute', 'text', 'comment', 'processing-instruction'.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_ret|text=|trigger=button}{sub-section}{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_see|text=|trigger=button}{sub-section}{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_see|text=|trigger=button}{sub-section}{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_sam|text=|trigger=button}{sub-section}{sub-section:F46E231F-5CAE-40BF-A0D5-74ABBB65188C_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.nodeKind()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8AF2139F-2DFA-4D6C-A930-6C4F18CAB314}{tr:id=name}{td}h6.normalize{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}normalize{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_des|text=|trigger=button}{sub-section}{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_des|trigger=none|class=sIndent}Returns this XML object after normalizing all text content.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_ret|text=|trigger=button}{sub-section}{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_see|text=|trigger=button}{sub-section}{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_see|text=|trigger=button}{sub-section}{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_sam|text=|trigger=button}{sub-section}{sub-section:8AF2139F-2DFA-4D6C-A930-6C4F18CAB314_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.normalize()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DDC5B824-DB4D-4CDC-8005-9F811D57A89E}{tr:id=name}{td}h6.parent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}parent{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_des|text=|trigger=button}{sub-section}{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_des|trigger=none|class=sIndent}Returns the parent XML object of this XML object or null if there is no parent.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_ret|text=|trigger=button}{sub-section}{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_see|text=|trigger=button}{sub-section}{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_see|text=|trigger=button}{sub-section}{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_sam|text=|trigger=button}{sub-section}{sub-section:DDC5B824-DB4D-4CDC-8005-9F811D57A89E_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.parent()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E0345C5C-7407-4324-8C07-3E456317B191}{tr:id=name}{td}h6.prependChild{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}prependChild{span}{span:id=iets|style=float: left;}\(childToPrepend){span}{td}{tr}{tr:id=des}{td}{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_des|text=|trigger=button}{sub-section}{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_des|trigger=none|class=sIndent}Iinserts the given value as the first child of the XML object and returns the XML object.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_prs|trigger=none}childToPrepend
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_ret|text=|trigger=button}{sub-section}{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_see|text=|trigger=button}{sub-section}{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_see|text=|trigger=button}{sub-section}{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_sam|text=|trigger=button}{sub-section}{sub-section:E0345C5C-7407-4324-8C07-3E456317B191_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.prependChild(childToPrepend)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A9605A28-8079-4A6F-940C-2189066D678D}{tr:id=name}{td}h6.processingInstructions{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XMLList]{span}{span:id=iets|style=float: left; font-weight: bold;}processingInstructions{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_des|text=|trigger=button}{sub-section}{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_des|trigger=none|class=sIndent}If no argument is passed in then the method returns an XMLList with all the children of the XML 
object which are processing instructions. If an argument is passed in then the method returns an 
XMLList with all children of the XML object which are processing instructions where the name 
matches the argument.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_prs|trigger=none}\[name\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_ret|text=|trigger=button}{sub-section}{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_ret|trigger=none|class=sIndent}[XMLList]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_see|text=|trigger=button}{sub-section}{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_see|text=|trigger=button}{sub-section}{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_sam|text=|trigger=button}{sub-section}{sub-section:A9605A28-8079-4A6F-940C-2189066D678D_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.processingInstructions([name])
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6FDF04AE-4EFB-442E-A111-91C286ACBE51}{tr:id=name}{td}h6.propertyIsEnumerable{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}propertyIsEnumerable{span}{span:id=iets|style=float: left;}\(propertyName){span}{td}{tr}{tr:id=des}{td}{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_des|text=|trigger=button}{sub-section}{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_des|trigger=none|class=sIndent}Returns true if the property name is '0' and false otherwise.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_prs|trigger=none}propertyName
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_ret|text=|trigger=button}{sub-section}{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_see|text=|trigger=button}{sub-section}{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_see|text=|trigger=button}{sub-section}{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_sam|text=|trigger=button}{sub-section}{sub-section:6FDF04AE-4EFB-442E-A111-91C286ACBE51_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.propertyIsEnumerable(propertyName)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9500A903-EC2E-426E-BE1F-2056D34D3ADE}{tr:id=name}{td}h6.removeNamespace{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}removeNamespace{span}{span:id=iets|style=float: left;}\(namespace){span}{td}{tr}{tr:id=des}{td}{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_des|text=|trigger=button}{sub-section}{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_des|trigger=none|class=sIndent}Removes the namespace from the in scope namespaces of this XML object if the namespace 
is not used for the qualified name of the object or its attributes.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_prs|trigger=none}namespace
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_ret|text=|trigger=button}{sub-section}{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_see|text=|trigger=button}{sub-section}{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_see|text=|trigger=button}{sub-section}{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_sam|text=|trigger=button}{sub-section}{sub-section:9500A903-EC2E-426E-BE1F-2056D34D3ADE_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.removeNamespace(namespace)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0EFD29E6-A489-44E4-BD5A-FB27003883A9}{tr:id=name}{td}h6.replace{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}replace{span}{span:id=iets|style=float: left;}\(propertyName, replacementValue){span}{td}{tr}{tr:id=des}{td}{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_des|text=|trigger=button}{sub-section}{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_des|trigger=none|class=sIndent}Takes two arguments, the property name of the property / properties to be replaced, and the 
value to replace the properties.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_prs|trigger=none}propertyName
replacementValue
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_ret|text=|trigger=button}{sub-section}{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_see|text=|trigger=button}{sub-section}{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_see|text=|trigger=button}{sub-section}{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_sam|text=|trigger=button}{sub-section}{sub-section:0EFD29E6-A489-44E4-BD5A-FB27003883A9_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.replace(propertyName, replacementValue)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=464BC637-65C2-4BED-AD08-AA4F6C0E7042}{tr:id=name}{td}h6.setChildren{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}setChildren{span}{span:id=iets|style=float: left;}\(value){span}{td}{tr}{tr:id=des}{td}{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_des|text=|trigger=button}{sub-section}{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_des|trigger=none|class=sIndent}Replaces all children of the XML object with this value. The method returns the XML object it 
is called on.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_prs|trigger=none}value
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_ret|text=|trigger=button}{sub-section}{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_see|text=|trigger=button}{sub-section}{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_see|text=|trigger=button}{sub-section}{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_sam|text=|trigger=button}{sub-section}{sub-section:464BC637-65C2-4BED-AD08-AA4F6C0E7042_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.setChildren(value)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B93AD844-B4A9-48A7-9B48-7BA25CD832B3}{tr:id=name}{td}h6.setLocalName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setLocalName{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_des|text=|trigger=button}{sub-section}{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_des|trigger=none|class=sIndent}Changes the local name of this XML object to the name passed in.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_prs|trigger=none}name
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_ret|text=|trigger=button}{sub-section}{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_see|text=|trigger=button}{sub-section}{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_see|text=|trigger=button}{sub-section}{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_sam|text=|trigger=button}{sub-section}{sub-section:B93AD844-B4A9-48A7-9B48-7BA25CD832B3_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.setLocalName(name)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2DB40B5B-3190-4376-BCC0-E5FBC959D769}{tr:id=name}{td}h6.setName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setName{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_des|text=|trigger=button}{sub-section}{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_des|trigger=none|class=sIndent}Replaces the name of this XML object with the name passed in.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_prs|trigger=none}name
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_ret|text=|trigger=button}{sub-section}{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_see|text=|trigger=button}{sub-section}{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_see|text=|trigger=button}{sub-section}{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_sam|text=|trigger=button}{sub-section}{sub-section:2DB40B5B-3190-4376-BCC0-E5FBC959D769_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.setName(name)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=91CEEFC2-E928-404A-B841-390D47C545AA}{tr:id=name}{td}h6.setNamespace{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setNamespace{span}{span:id=iets|style=float: left;}\(namespace){span}{td}{tr}{tr:id=des}{td}{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_des|text=|trigger=button}{sub-section}{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_des|trigger=none|class=sIndent}Changes the namespace associated with the name of this XML object to the new namespace.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_prs|trigger=none}namespace
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_ret|text=|trigger=button}{sub-section}{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_see|text=|trigger=button}{sub-section}{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_see|text=|trigger=button}{sub-section}{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_sam|text=|trigger=button}{sub-section}{sub-section:91CEEFC2-E928-404A-B841-390D47C545AA_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.setNamespace(namespace)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AC9DF6FC-0C27-4650-B144-5031416A9E99}{tr:id=name}{td}h6.text{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XMLList]{span}{span:id=iets|style=float: left; font-weight: bold;}text{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_des|text=|trigger=button}{sub-section}{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_des|trigger=none|class=sIndent}Returns an XMLList with all the children of this XML object that represent text nodes.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_ret|text=|trigger=button}{sub-section}{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_ret|trigger=none|class=sIndent}[XMLList]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_see|text=|trigger=button}{sub-section}{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_see|text=|trigger=button}{sub-section}{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_sam|text=|trigger=button}{sub-section}{sub-section:AC9DF6FC-0C27-4650-B144-5031416A9E99_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.text()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=41AA423F-1CE6-4EDE-B542-F1EDDF6F4863}{tr:id=name}{td}h6.toString{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}toString{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_des|text=|trigger=button}{sub-section}{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_des|trigger=none|class=sIndent}Returns a convenient string value of this XML object.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_ret|text=|trigger=button}{sub-section}{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_see|text=|trigger=button}{sub-section}{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_see|text=|trigger=button}{sub-section}{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_sam|text=|trigger=button}{sub-section}{sub-section:41AA423F-1CE6-4EDE-B542-F1EDDF6F4863_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.toString()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7D8F8C50-8ED2-404E-B4A9-DE695384C8A1}{tr:id=name}{td}h6.toXMLString{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}toXMLString{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_des|text=|trigger=button}{sub-section}{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_des|trigger=none|class=sIndent}Returns a string with the serialized XML markup for this XML object. XML.prettyPrinting 
and XML.prettyIndent settings affect the returned string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_ret|text=|trigger=button}{sub-section}{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_see|text=|trigger=button}{sub-section}{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_see|text=|trigger=button}{sub-section}{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_sam|text=|trigger=button}{sub-section}{sub-section:7D8F8C50-8ED2-404E-B4A9-DE695384C8A1_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.toXMLString()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8AECAAB7-FF2B-4ED2-805C-083E818C8AA2}{tr:id=name}{td}h6.valueOf{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XML]{span}{span:id=iets|style=float: left; font-weight: bold;}valueOf{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_des|text=|trigger=button}{sub-section}{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_des|trigger=none|class=sIndent}The method simply returns the XML object it is called on.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_ret|text=|trigger=button}{sub-section}{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_ret|trigger=none|class=sIndent}[XML]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_see|text=|trigger=button}{sub-section}{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_see|text=|trigger=button}{sub-section}{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_link|class=sIndent|trigger=none}http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf
{sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_sam|text=|trigger=button}{sub-section}{sub-section:8AECAAB7-FF2B-4ED2-805C-083E818C8AA2_sam|class=sIndent|trigger=none}{code:language=javascript}
xml.valueOf()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}