Public Member Functions

nsIDOMSerializer Interface Reference

The nsIDOMSerializer interface is really a placeholder till the W3C DOM Working Group defines a mechanism for serializing DOM nodes. More...

import "nsIDOMSerializer.idl";

List of all members.

Public Member Functions

AString serializeToString (in nsIDOMNode root)
 The subtree rooted by the specified element is serialized to a string.
void serializeToStream (in nsIDOMNode root, in nsIOutputStream stream, in AUTF8String charset)
 The subtree rooted by the specified element is serialized to a byte stream using the character set specified.

Detailed Description

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.


Member Function Documentation

void nsIDOMSerializer::serializeToStream ( in nsIDOMNode  root,
in nsIOutputStream  stream,
in AUTF8String  charset 
)

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

Parameters:
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.
AString nsIDOMSerializer::serializeToString ( in nsIDOMNode  root  ) 

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

Parameters:
root The root of the subtree to be serialized. This could be any node, including a Document.
Returns:
The serialized subtree in the form of a Unicode string

The documentation for this interface was generated from the following file: