Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

serializeToString method

Converts nodes in a Document Object Model (DOM) tree to a string that contains an XML representation of the tree.

Internet Explorer 9

Syntax

var retval = XMLSerializer.serializeToString(pNode);

Parameters

pNode [in]

Type: IHTMLDOMNode

The parent DOM node of a document tree to convert to an XML string.

Return value

Type: String

The string that contains an XML representation of a DOM node tree.

Standards information

There are no standards that apply here.

Remarks

To use the serializeToString method, type the following syntax.


oXmlSerializer =  new XMLSerializer();
sXmlString = oXmlSerializer.serializeToString(oDOMNode);

See also

XMLSerializer

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.