Andy Atherton wrote:
> 
> This works really well !
> 
> Hopefully a future version of the UnmarshalHandler will support SAX 2.0
> content handlers.

We're working on it...it will be available soon....before we release
Castor 0.4.

In the meantime you can use the SAX 1.0 adapters that come with SAX 2.0,
XMLReaderAdapter and ParserAdapter...

--Keith

> 
> -----Original Message-----
> From: Andrew Fawcett [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 9:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] Large XML files with Castor
> 
> Hi,
> 
> A SAX 1.0 interface is available via the UnmarshalHandler class.
> 
> Unmarshaller unmarshaller = new Unmarshaller(MyClass.class)
> UnmarshalHandler handler = unmarshaller.createHandler();
> // Send events to 'handler'
> // ...
> Object object = handler.getObject();
> 
> Andy.
> 
> -----Original Message-----
> From: Andy Atherton [ mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> ]
> Sent: 06 March 2002 09:38
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] Large XML files with Castor
> 
> Hi,
> 
> I am trying to parse a very large XML file. I would like to use Castor
> but it tries to load everything into memory which is not very practical.
> 
> So I am using SAX 2.0 and setting a content handler to go through the
> file. Is there a way of using SAX with Castor ? eg Unmarshalling at
> every startElement event ?
> 
> andy
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

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

Reply via email to