Class XMLSerializer
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The XMLSerializer interface provides the SerializeToString(Node) method to construct an XML string representing a {{Glossary("DOM")}} tree.
[Value("XMLSerializer")]
public class XMLSerializer
- Inheritance
-
XMLSerializer
- Inherited Members
Remarks
NOTE
The resulting XML string is not guaranteed to be well-formed XML.
Constructors
XMLSerializer()
The XMLSerializer() constructor creates a new XMLSerializer.
public XMLSerializer()
Remarks
Methods
SerializeToString(Node)
The XMLSerializer methodserializeToString() constructs a string representing the
specified DOM tree in XML form.
[Value("serializeToString")]
public string SerializeToString(Node root)
Parameters
rootNode
Returns
- string
A string containing the XML representation of the specified DOM tree.
Remarks
-Parsing and serializing XML
-Serializing to HTML: InnerHTML and
OuterHTML
-Parsing HTML or XML to create a DOM tree: DOMParser