Hi Carsten,

Interesting idea, but no, you can't do it like that.

You can use StAX to pass one chunk of XML at a time to XMLBeans. Maybe
this post will be useful, the topic has been discussed a few times on
this list:

http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200812.mbox/%
3c3fe492083cf22f4a8420cb8fa63bdf5e02b913d...@naimuclf.wwg00m.rootdom.net
%3E

Radu

On Sat, 2009-03-07 at 16:55 -0500, cz wrote:
> Hello,
> 
> I have to handle some HUGE xml files with a schema like
> 
> <root>
>     <unit>
>        <child/>
>        <child/>
>     </unit>
>  
>     <unit>..
> </root>
> 
> The units are pretty small, but root contains several thousands of
> units. No problem to handle using a pure SAX attempt.
> 
> But is it possible to use XMLBeans and get some kind of notification as
> soon a unit is successfully mapped into Java Objects ? After handling
> the unit I would scratch the data and wait for the next unit to come.
> 
> Thanks, Carsten
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to