Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

nsIDOMParser Interface Reference

import "nsIDOMParser.idl";

Inheritance diagram for nsIDOMParser:


List of all members.

Detailed Description

The nsIDOMParser interface is a non-SAX interface that can be used to parse a string or byte stream containing XML or HTML content to a DOM document. Parsing is always synchronous - a document is always returned from the parsing methods. This is as opposed to loading and parsing with the XMLHttpRequest interface, which can be used for asynchronous (callback-based) loading.

Definition at line 55 of file nsIDOMParser.idl.

Public Member Functions

void init (in nsIPrincipal principal, in nsIURI documentURI, in nsIURI baseURI, in nsIScriptGlobalObject scriptObject)
nsIDOMDocument parseFromBuffer ([const, array, size_is(bufLen)] in octet buf, in PRUint32 bufLen, in string contentType)
nsIDOMDocument parseFromStream (in nsIInputStream stream, in string charset, in long contentLength, in string contentType)
nsIDOMDocument parseFromString (in wstring str, in string contentType)
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

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

Generated by  Doxygen 1.6.0   Back to index