Table of Contents

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.

-Parsing and serializing XML
-DOMParser

See also on MDN

Constructors

XMLSerializer()

The XMLSerializer() constructor creates a new XMLSerializer.

public XMLSerializer()

Remarks

Methods

SerializeToString(Node)

The XMLSerializer method
serializeToString() constructs a string representing the
specified DOM tree in XML form.

[Value("serializeToString")]
public string SerializeToString(Node root)

Parameters

root Node

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

See also on MDN