nsISupports
Last changed in Gecko 1.7 Implemented by: @mozilla.org/xmlextras/xmlserializer;1. To create an instance, use:
var domSerializer = Components.classes["@mozilla.org/xmlextras/xmlserializer;1"]
.createInstance(Components.interfaces.nsIDOMSerializer);
void serializeToStream(in nsIDOMNode root, in nsIOutputStream stream, in AUTF8String charset); |
AString serializeToString(in nsIDOMNode root); |
The subtree rooted by the specified element is serialized to a byte stream using the character set specified.
void serializeToStream( in nsIDOMNode root, in nsIOutputStream stream, in AUTF8String charset );
rootstreamcharsetThe subtree rooted by the specified element is serialized to a string.
AString serializeToString( in nsIDOMNode root );
rootThe serialized subtree in the form of a Unicode string.