nsIDOMSerializer

IID:9fd4ba15-e67c-4c98-b52c-7715f62c9196
Inherits From:nsISupports

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.

This interface is implemented by the following components:


Methods

void serializeToStream ( nsIDOMNode root , nsIOutputStream stream , AUTF8String charset ) AString serializeToString ( nsIDOMNode root )

void serializeToStream ( nsIDOMNode root , nsIOutputStream stream , AUTF8String charset )

The subtree rooted by the specified element is serialized to a byte stream using the character set specified.

Arguments:
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.

AString serializeToString ( nsIDOMNode root )

The subtree rooted by the specified element is serialized to a string.

Arguments:
root: The root of the subtree to be serialized. This could be any node, including a Document.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com