XML DOM transformNode() method

Node object reference manual

Definition and usage

The transformNode() method uses XSLT to convert a node to a string.

Syntax:

nodeObject.transformNode(xslt)
parameter description
query An XSLT style sheet, parsed into a Document object.

Return value

text generated by applying the specified style to the node and its descendants.

Explain

this specific IE method converts a Node and its descendants according to the rules specified by an XSLT style sheet, and returns the result as an unparsed string.

this transformNode() method exists only on XML document nodes, not in HTML documents. Note that since Document objectare their own nodes, this method can be applied to the entire XML document.

See XSLTProcessorfor similar features in other browsers.

See

Node.transformNodeToObject()

Node object reference manual