The nsIDOMSerializer interface is really a placeholder till the W3C
DOM Working Group defines a mechanism for serializing DOM nodes.
An instance of this interface can be used to serialize a DOM document
or any DOM subtree.
The subtree rooted by the specified element is serialized to
a string.
root | The root of the subtree to be serialized. This could be any node, including a Document. |
The serialized subtree in the form of a Unicode string |
The subtree rooted by the specified element is serialized to
a byte stream using the character set specified.
root | The root of the subtree to be serialized. This could be any node, including a Document. |
stream | The byte stream to which the subtree is serialized. |
charset | The name of the character set to use for the encoding to a byte stream. If this string is empty and root is a document, the document's character set will be used. |