Stephen Tsun wrote:
> 
> hi:
> 
> i am trying to use castor with sax2, but I notice that the marshaller only
> supports
> a constructor with the DocumentHandler interface.
> 
> Does castor support SAX2?  

Not yet. However you can use a combination of
org.xml.sax.helpers.XMLReaderAdapter,
and org.xml.sax.helpers.ParserAdapter so that you can work with SAX 2.

You'll notice on the status/to-do page of our website
(http://castor.exolab.org/status.html#Marshalling-Framework) That we
have our own XML event API which we will use instead of SAX 1 + SAX 2,
however both SAX 1 and SAX 2 will be supported. By having our own API we
can control the API, prevent deprecation issues, and have only the
features that we need. SAX 2 has too many ways to handle namespaces, SAX
1 is a good API, but it's been deprecated by David Megginson. SAX 1
lacks direct namespace support but I didn't feel that was a big issue
since it's easy enough to write the namespace handling code on top of
SAX 1.

>If not, is there a plan to? (and when?)

This is one of the features preventing us from releasing 0.9.4. So it is
a planned feature of 0.9.4.

Thanks,

--Keith

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to