Hi Niklas,
Niklas Nebel schrieb:
On 01/06/10 16:03, Peter Eberlein wrote:
the following snippet (I left out the callback functions for the
listeners) gives an error:
xSaxParser =
CreateUnoListener("SaxParser","com.sun.star.xml.sax.XParser")
xDocumentHandler =
CreateUnoListener("DocHandler","com.sun.star.xml.sax.XDocumentHandler")
xSaxParser.setDocumentHandler (xDocumentHandler)
CreateUnoListener means that you must provide the method
implementations. Did you define a sub "SaxParsersetDocumentHandler"?
no, I will do this.
A parser implementation is available using
CreateUnoService("com.sun.star.xml.sax.Parser"). A complete example is
at http://wiki.services.openoffice.org/wiki/XML_and_Filter.
So the service "com.sun.star.xml.sax.Parser" is not documented? See
http://api.openoffice.org/docs/common/ref/com/sun/star/xml/sax/module-ix.html
I'll give it a try
Thanks
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]