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

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.