:: com :: sun :: star :: xml :: sax ::

interface XFastParser

Methods' Summary
parseStream parses an XML document from a stream.  
setFastDocumentHandler Application must register a document event handler to get sax events for the parsed stream.  
setTokenHandler must be registered to translate known XML names to integer tokens.  
registerNamespace registers a known namespace url with the given integer token.
 
setErrorHandler allows an application to register an error event handler.  
setEntityResolver allows an application to register a DTD-Handler.  
setLocale sets a locale specified for localization of warnings and error messages.  
getNamespaceURL Gets the namespace url string.  
Methods' Details
parseStream
void
parseStream( [in] InputSource  aInputSource )
raises( SAXException,
::com::sun::star::io::IOException );

Description
parses an XML document from a stream.

Set the desired handlers before calling this method.

setFastDocumentHandler
void
setFastDocumentHandler( [in] XFastDocumentHandler  Handler );

Description
Application must register a document event handler to get sax events for the parsed stream.
setTokenHandler
void
setTokenHandler( [in] XFastTokenHandler  Handler );

Description
must be registered to translate known XML names to integer tokens.
registerNamespace
void
registerNamespace( [in] string  NamespaceURL,
[in] long  NamespaceToken )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
registers a known namespace url with the given integer token.
Parameter NamespaceToken
an integer token that must be greater than FastToken::NAMESPACE.
setErrorHandler
void
setErrorHandler( [in] XErrorHandler  Handler );

Description
allows an application to register an error event handler.

Note that the error handler can throw an exception when an error or warning occurs. Note that an exception is thrown by the parser when an unrecoverable (fatal) error occurs.

setEntityResolver
void
setEntityResolver( [in] XEntityResolver  Resolver );

Description
allows an application to register a DTD-Handler.
setLocale
void
setLocale( [in] ::com::sun::star::lang::Locale  locale );

Description
sets a locale specified for localization of warnings and error messages.

Set the language of the error messages. Useful when the parsing errors will be presented to the user.

getNamespaceURL
string
getNamespaceURL( [in] string  prefix )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
Gets the namespace url string.
Top of Page