LibreOffice
LibreOffice 24.2 SDK API Reference
|
specifies a SAX parser. More...
import"XParser.idl";
Public Member Functions | |
void | parseStream ([in] com::sun::star::xml::sax::InputSource aInputSource) raises ( com::sun::star::xml::sax::SAXException, com::sun::star::io::IOException ) |
parses an XML document from a stream. More... | |
void | setDocumentHandler ([in] com::sun::star::xml::sax::XDocumentHandler xHandler) |
allows an application to register a document event handler. More... | |
void | setErrorHandler ([in] com::sun::star::xml::sax::XErrorHandler xHandler) |
allows an application to register an error event handler. More... | |
void | setDTDHandler ([in] com::sun::star::xml::sax::XDTDHandler xHandler) |
allows an application to register a DTD-Handler. More... | |
void | setEntityResolver ([in] com::sun::star::xml::sax::XEntityResolver xResolver) |
allows an application to register a DTD-Handler. More... | |
void | setLocale ([in] com::sun::star::lang::Locale locale) |
sets a locale specified for localization of warnings and error messages. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
specifies a SAX parser.
This interface is an IDL version of the Java interface org.xml.sax.Parser with some minor adaptations.
void parseStream | ( | [in] com::sun::star::xml::sax::InputSource | aInputSource | ) | |
raises | ( | com::sun::star::xml::sax::SAXException, | |||
com::sun::star::io::IOException | |||||
) |
parses an XML document from a stream.
Set the desired handlers before calling this method.
void setDocumentHandler | ( | [in] com::sun::star::xml::sax::XDocumentHandler | xHandler | ) |
allows an application to register a document event handler.
void setDTDHandler | ( | [in] com::sun::star::xml::sax::XDTDHandler | xHandler | ) |
allows an application to register a DTD-Handler.
void setEntityResolver | ( | [in] com::sun::star::xml::sax::XEntityResolver | xResolver | ) |
allows an application to register a DTD-Handler.
void setErrorHandler | ( | [in] com::sun::star::xml::sax::XErrorHandler | xHandler | ) |
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.
void setLocale | ( | [in] com::sun::star::lang::Locale | locale | ) |
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.