serializeToString method
Converts nodes in a Document Object Model (DOM) tree to a string that contains an XML representation of the tree.
![]() |
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
Show:
