If set to true, then comments in the XML are ignored when constructing new XML objects. |
|
If set to true, then processing instructions are ignored when constructing new XML objects. |
|
If set to true, then whitespace in the XML is ignored when constructing new XML objects. |
|
The amount of positions used when indenting child nodes are relative to their parent
if prettyPrinting is enabled. |
|
If set to true, then toString() and toXMLString() methods will normalize the output
to achieve a uniform appearance. |
|
|
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. |
|
Appends a new child at the end of this XML object's properties, the changed XML object is then returned. |
|
Takes a single argument with the attribute name and returns an XMLList with attributes
matching the argument. |
|
Returns an XMLList with the attributes of this XML object which are in no namespace. |
|
Returns an XMLList with children matching the property name. |
|
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. |
|
Returns an XMLList with the child nodes of this XML object. |
|
Returns an XMLList with the comment nodes which are children of this XML object. |
|
Returns a deep copy of the XML object it is called on where the internal parent property is set to null |
|
Returns an object containing the default XML settings. |
|
Returns an XMLList with the descendants matching the passed name argument or with all descendants
if no argument is passed. |
|
Returns an XMLList with the descendants matching the passed name argument or with all descendants
if no argument is passed. |
|
Takes one optional argument, the name of elements you are looking for, and returns an XMLList with
all matching child elements. |
|
Takes one optional argument, the name of elements you are looking for, and returns an XMLList with
all matching child elements. |
|
Returns false for XML objects of node kind 'text', 'attribute', 'comment', and 'processing-instruction'. |
|
Returns true if the XML object the method is called on has a property of that name. |
|
Returns true for XML objects of node kind text or attribute. |
|
Returns an array of Namespace objects representing the namespace that are in scope for this XML object. |
|
Takes two arguments, an existing child to insert after and the new child to be inserted. |
|
Takes two arguments, an existing child to insert before and the new child to be inserted. |
|
returns the local name part if the XML object has a name. |
|
Returns the qualified name (a QName object) of the XML object it is called |
|
If no argument is passed to the method then it returns the namespace associated with the qualified
name of this XML object. |
|
If no argument is passed to the method then it returns the namespace associated with the qualified
name of this XML object. |
|
Returns an array with the namespace declarations associated with the XML object it is called on. |
|
Returns a string denoting the kind of node this XML object represents. |
|
Returns this XML object after normalizing all text content. |
|
Returns the parent XML object of this XML object or null if there is no parent. |
|
Iinserts the given value as the first child of the XML object and returns the XML object. |
|
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 no argument is passed in then the method returns an XMLList with all the children of the XML
object which are processing instructions. |
|
Returns true if the property name is '0' and false otherwise. |
|
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. |
|
Takes two arguments, the property name of the property / properties to be replaced, and the
value to replace the properties. |
|
Replaces all children of the XML object with this value. |
|
Changes the local name of this XML object to the name passed in. |
|
Replaces the name of this XML object with the name passed in. |
|
Changes the namespace associated with the name of this XML object to the new namespace. |
|
Allows the global XML settings to be adjusted or restored to their default values. |
|
Allows the global XML settings to be adjusted or restored to their default values. |
|
Returns an object containing the global XML settings. |
|
Returns an XMLList with all the children of this XML object that represent text nodes. |
|
Returns a convenient string value of this XML object. |
|
Returns a string with the serialized XML markup for this XML object. |
|
The method simply returns the XML object it is called on. |
|
|
If set to true, then comments in the XML are ignored when constructing new XML objects. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var element = <foo><!-- my comment --><bar/></foo>;
application.output(element.comments().length());
application.output(element.toXMLString());
XML.ignoreComments = false;
element = <foo><!-- my comment --><bar/></foo>;
application.output(element.comments().length());
application.output(element.toXMLString()); |
|
|
|
|
ignoreProcessingInstructions |
|
If set to true, then processing instructions are ignored when constructing new XML objects. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample XML.ignoreProcessingInstructions=false;
var xmlElement = <publishing><?process author="yes"?><author type="leadership">John C. Maxwell</author></publishing>;
application.output(" Element = "+ xmlElement.toXMLString()); |
|
|
|
|
If set to true, then whitespace in the XML is ignored when constructing new XML objects. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample XML.ignoreWhitespace = false;
var xmlElement =
<publishing>
<author>John C. Maxwell</author>
</publishing>;
application.output(xmlElement.toString()); |
|
|
|
|
The amount of positions used when indenting child nodes are relative to their parent
if prettyPrinting is enabled. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var xmlElement = <publishing><author>Tom DeMarco</author><author>Roger S. Pressman</author></publishing>;
application.output(xmlElement.toXMLString());
XML.prettyPrinting = true;
XML.prettyIndent = 4;
xmlElement = <publishing><author>Tom DeMarco</author><author>Roger S. Pressman</author></publishing>;
application.output(xmlElement.toXMLString()); |
|
|
|
|
If set to true, then toString() and toXMLString() methods will normalize the output
to achieve a uniform appearance. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var xmlElement = <publishing><author>Tom DeMarco</author><author>Roger S. Pressman</author></publishing>;
application.output(xmlElement.toXMLString());
XML.prettyPrinting = true;
XML.prettyIndent = 4;
xmlElement = <publishing><author>Tom DeMarco</author><author>Roger S. Pressman</author></publishing>;
application.output(xmlElement.toXMLString()); |
|
|
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.addNamespace(namespaceToAdd) |
|
|
|
|
appendChild(childToAppend) |
|
Appends a new child at the end of this XML object's properties, the changed XML object is then returned. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.appendChild(childToAppend) |
|
|
|
|
Takes a single argument with the attribute name and returns an XMLList with attributes
matching the argument. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.attribute(attributeName) |
|
|
|
|
Returns an XMLList with the attributes of this XML object which are in no namespace. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns an XMLList with children matching the property name. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.child(childPropertyName) |
|
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns an XMLList with the child nodes of this XML object. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns an XMLList with the comment nodes which are children of this XML object. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Calling xmlObject.contains(value) yields the same result as the equality comparison xmlObject == value |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns a deep copy of the XML object it is called on where the internal parent property is set to null |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns an object containing the default XML settings. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns an XMLList with the descendants matching the passed name argument or with all descendants
if no argument is passed. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns an XMLList with the descendants matching the passed name argument or with all descendants
if no argument is passed. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Takes one optional argument, the name of elements you are looking for, and returns an XMLList with
all matching child elements. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Takes one optional argument, the name of elements you are looking for, and returns an XMLList with
all matching child elements. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
hasOwnProperty(propertyName) |
|
Returns true if the XML object the method is called on has a property of that name. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.hasOwnProperty(propertyName) |
|
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns an array of Namespace objects representing the namespace that are in scope for this XML object. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
insertChildAfter(childToInserAfter, childToInsert) |
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.insertChildAfter(childToInsertAfter, childToInsert) |
|
|
|
|
insertChildBefore(childToInsertBefore, childToInsert) |
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.insertChildBefore(childToInsertBefore, childToInsert) |
|
|
|
|
This always returns 1. This is done to blur the distinction between an XML object and an XMLList
containing exactly one value. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
returns the local name part if the XML object has a name. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns the qualified name (a QName object) of the XML object it is called |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns an array with the namespace declarations associated with the XML object it is called on. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.namespaceDeclarations() |
|
|
|
|
Returns a string denoting the kind of node this XML object represents. Possible values: 'element',
'attribute', 'text', 'comment', 'processing-instruction'. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns this XML object after normalizing all text content. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns the parent XML object of this XML object or null if there is no parent. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
prependChild(childToPrepend) |
|
Iinserts the given value as the first child of the XML object and returns the XML object. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.prependChild(childToPrepend) |
|
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.processingInstructions([name]) |
|
|
|
|
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. 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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.processingInstructions([name]) |
|
|
|
|
propertyIsEnumerable(propertyName) |
|
Returns true if the property name is '0' and false otherwise. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.propertyIsEnumerable(propertyName) |
|
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.removeNamespace(namespace) |
|
|
|
|
replace(propertyName, replacementValue) |
|
Takes two arguments, the property name of the property / properties to be replaced, and the
value to replace the properties. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.replace(propertyName, replacementValue) |
|
|
|
|
Replaces all children of the XML object with this value. The method returns the XML object it
is called on. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Changes the local name of this XML object to the name passed in. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Replaces the name of this XML object with the name passed in. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Changes the namespace associated with the name of this XML object to the new namespace. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.setNamespace(namespace) |
|
|
|
|
Allows the global XML settings to be adjusted or restored to their default values. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.setSettings(settings) |
|
|
|
|
Allows the global XML settings to be adjusted or restored to their default values. |
|
|
Parameters The new settings that should be applied globally to the XML object. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample xml.setSettings(settings) |
|
|
|
|
Returns an object containing the global XML settings. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns an XMLList with all the children of this XML object that represent text nodes. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns a convenient string value of this XML object. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Returns a string with the serialized XML markup for this XML object. XML.prettyPrinting
and XML.prettyIndent settings affect the returned string. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
The method simply returns the XML object it is called on. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
|
|