[scriptable, uuid(eb1a5d31-ab33-11d2-8ec6-00805f29f370)]
interface nsIRDFXMLSink : nsISupports

Attributes

 A "sink" that receives and processes RDF/XML. This interface is used
 by the RDF/XML parser.


 Set to <code>true</code> if the sink is read-only and cannot
 be modified
attribute boolean readOnly

Methods

 Add namespace information to the RDF/XML sink.
 @param aPrefix the namespace prefix
 @param aURI the namespace URI
[noscript] void addNameSpace(in nsIAtomPtr aPrefix, [const] in nsStringRef aURI)
 Add an observer that will be notified as the RDF/XML load
 progresses.
 <p>

 Note that the sink will acquire a strong reference to the
 observer, so care should be taken to avoid cyclical references
 that cannot be released (i.e., if the observer holds a
 reference to the sink, it should be sure that it eventually
 clears the reference).

 @param aObserver the observer to add to the sink's set of
 load observers.
void addXMLSinkObserver(in nsIRDFXMLSinkObserver aObserver)
 Initiate the RDF/XML load.
void beginLoad()
 Complete the RDF/XML load.
void endLoad()
 Suspend the RDF/XML load.
void interrupt()
 Remove an observer from the sink's set of observers.
 @param aObserver the observer to remove.
void removeXMLSinkObserver(in nsIRDFXMLSinkObserver aObserver)
 Resume the RDF/XML load.
void resume()