Struct xpcom::interfaces::nsIDOMSerializer [] [src]

#[repr(C)]
pub struct nsIDOMSerializer { /* fields omitted */ }

interface nsIDOMSerializer : 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.
 */

Methods

impl nsIDOMSerializer
[src]

[src]

Cast this nsIDOMSerializer to one of its base interfaces.

impl nsIDOMSerializer
[src]

[src]

/**
   * The subtree rooted by the specified element is serialized to
   * a string.
   *
   * @param 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
   */

AString serializeToString (in nsIDOMNode root);

[src]

/**
   * The subtree rooted by the specified element is serialized to
   * a byte stream using the character set specified.
   * @param root The root of the subtree to be serialized. This could
   *             be any node, including a Document.
   * @param stream The byte stream to which the subtree is serialized.
   * @param 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.
   */

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

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIDOMSerializer
[src]

IID: nsIID = nsID(2681518613, 59004, 19608, [181, 44, 119, 21, 246, 44, 145, 150])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIDOMSerializer
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDOMSerializer
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.