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"?
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.
Niklas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]