Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


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

interface XParser
Description
specifies a SAX parser.

This interface is an IDL version of the Java interface org.xml.sax.Parser with some minor adaptations.


Methods' Summary
parseStream parses an XML document from a stream.  
setDocumentHandler allows an application to register a document event handler.  
setErrorHandler allows an application to register an error event handler.  
setDTDHandler allows an application to register a DTD-Handler.  
setEntityResolver allows an application to register a DTD-Handler.  
setLocale sets a locale specified for localization of warnings and error messages.  
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.

setDocumentHandler
void
setDocumentHandler( [in] XDocumentHandler  xHandler );

Description
allows an application to register a document event handler.
setErrorHandler
void
setErrorHandler( [in] XErrorHandler  xHandler );

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.

setDTDHandler
void
setDTDHandler( [in] XDTDHandler  xHandler );

Description
allows an application to register a DTD-Handler.
setEntityResolver
void
setEntityResolver( [in] XEntityResolver  xResolver );

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.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.