Hi Lars

> > Btw: Is there any possibility to transform SAX1 <-> SAX2? Some packages
> > only accept SAX1, but the XML:DB API provides a ContentHandler (SAX2).
> 
> As far as I know there is only a org.xml.sax.helpers.ParserAdapter which
> converts (or rather tries to convert) SAX1 to SAX2. The other direction
> should be no problem to implement if you take ParserAdapter as a
> template.

I don't know why I haven't seen it in the first place. JAXP 1.1 contains
adapters in both directions:
SAX1 --> SAX2: org.xml.sax.helpers.ParserAdapter implements XMLReader, DocumentHandler
SAX2 --> SAX1: org.xml.sax.helpers.XMLReaderAdapter implements Parser, ContentHandler

Jeremias M�rki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch

----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact adminstrator:   mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to