WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/saxparser/xmlreader;1

This component implements the following interfaces:

Properties

nsIURI nsISAXXMLReader.baseURI

The base URI.

nsISAXContentHandler nsISAXXMLReader.contentHandler

If the application does not register a content handler, all content events reported by the SAX parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

nsISAXDTDHandler nsISAXXMLReader.dtdHandler

If the application does not register a DTD handler, all DTD events reported by the SAX parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

nsISAXErrorHandler nsISAXXMLReader.errorHandler

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

nsISAXLexicalHandler nsISAXXMLReader.lexicalHandler

If the application does not register a lexical handler, all lexical events (e.g. startDTD) reported by the SAX parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Methods

InterfaceMethod
nsISAXXMLReader PRBool getFeature ( AString name )
nsISAXXMLReader PRBool getProperty ( AString name )
nsIExpatSink void HandleCDataSection ( PRUnichar* data , PRUint32 length )
nsIExpatSink void HandleCharacterData ( PRUnichar* data , PRUint32 length )
nsIExpatSink void HandleComment ( PRUnichar* commentText )
nsIExpatSink void HandleDoctypeDecl ( AString subset , AString name , AString systemId , AString publicId , nsISupports catalogData )
nsIExpatSink void HandleEndElement ( PRUnichar* name )
nsIExtendedExpatSink void handleEndNamespaceDecl ( PRUnichar* prefix )
nsIExtendedExpatSink void handleNotationDecl ( PRUnichar* notationName , PRUnichar* sysid , PRUnichar* pubid )
nsIExpatSink void HandleProcessingInstruction ( PRUnichar* target , PRUnichar* data )
nsIExtendedExpatSink void handleStartDTD ( PRUnichar* doctypeName , PRUnichar* sysid , PRUnichar* pubid )
nsIExpatSink void HandleStartElement ( PRUnichar* name , arrayof PRUnichar* atts , PRUint32 attsCount , PRInt32 index , PRUint32 lineNumber )
nsIExtendedExpatSink void handleStartNamespaceDecl ( PRUnichar* prefix , PRUnichar* uri )
nsIExtendedExpatSink void handleUnparsedEntityDecl ( PRUnichar* name , PRUnichar* sysid , PRUnichar* pubid , PRUnichar* notationName )
nsIExpatSink void HandleXMLDeclaration ( PRUnichar* version , PRUnichar* encoding , PRInt32 standalone )
nsIStreamListener void onDataAvailable ( nsIRequest request , nsISupports context , nsIInputStream inputStream , PRUint32 offset , PRUint32 count )
nsIRequestObserver void onStartRequest ( nsIRequest request , nsISupports context )
nsIRequestObserver void onStopRequest ( nsIRequest request , nsISupports context , nsresult statusCode )
nsISAXXMLReader void parseAsync ( nsIRequestObserver observer )
nsISAXXMLReader void parseFromStream ( nsIInputStream stream , char* charset , char* contentType )
nsISAXXMLReader void parseFromString ( AString str , char* contentType )
nsIExpatSink PRBool ReportError ( PRUnichar* errorText , PRUnichar* sourceText , nsIScriptError error )
nsISAXXMLReader void setFeature ( AString name , PRBool value )
nsISAXXMLReader void setProperty ( AString name , nsISupports value )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com