dojox/xml/parser (version 1.10)

See the dojox/xml/parser reference documentation for more information.

Method Summary

  • innerXML(node) Implementation of MS's innerXML function.
  • parse(str,mimetype) cross-browser implementation of creating an XML document object from null, empty string, and XML text..
  • removeChildren(node) removes all children from node and returns the count of children removed.
  • replaceChildren(node,newChildren) Removes all children of node and appends newChild.
  • textContent(node,text) Implementation of the DOM Level 3 attribute; scan node for text

Methods

innerXML(node)
Defined by dojox/xml/parser

Implementation of MS's innerXML function.

Parameter Type Description
node Node

The node from which to generate the XML text representation.

Returns:undefined | null
parse(str,mimetype)
Defined by dojox/xml/parser

cross-browser implementation of creating an XML document object from null, empty string, and XML text..

Parameter Type Description
str String
Optional

Optional text to create the document from. If not provided, an empty XML document will be created. If str is empty string "", then a new empty document will be created.

mimetype String
Optional

Optional mimetype of the text. Typically, this is text/xml. Will be defaulted to text/xml if not provided.

Returns:undefined | null
removeChildren(node)
Defined by dojox/xml/parser

removes all children from node and returns the count of children removed. The children nodes are not destroyed. Be sure to call dojo.destroy on them after they are not used anymore.

Parameter Type Description
node Element

The node to remove all the children from.

Returns:undefined
replaceChildren(node,newChildren)
Defined by dojox/xml/parser

Removes all children of node and appends newChild. All the existing children will be destroyed.

Removes all children of node and appends newChild. All the existing children will be destroyed.

Parameter Type Description
node Element

The node to modify the children on

newChildren Node | Array

The children to add to the node. It can either be a single Node or an array of Nodes.

Returns:String

Optional argument of the text to apply to the node.

textContent(node,text)
Defined by dojox/xml/parser

Implementation of the DOM Level 3 attribute; scan node for text

Implementation of the DOM Level 3 attribute; scan node for text This function can also update the text of a node by replacing all child content of the node.

Parameter Type Description
node Node

The node to get the text off of or set the text on.

text String
Optional

Optional argument of the text to apply to the node.

Returns:undefined
Error in the documentation? Can’t find what you are looking for? Let us know!