Just a thought,

put it in a string in a stringstream and unmarshall multiple objects from it. I'm not 
sure if this works or gives an exception if it meets the second <order>. If it does 
you'll have to split it "by hand". Good luck.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 11:37 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] unmarshalling + tips & tricks
> 
> 
> heiko ..i know that is not a valid structure :) ...
> 
> i'm just trying to find the best and optimal way for 
> unmarshalling multiple
> xml documents gathered in one big txt file .... in structure that i
> described in my previous post.
> 
> danny
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] unmarshalling + tips & tricks
> 
> 
>       Hi,
> 
>       i think it's not a valid xml - structure, and xerces will not
> support this...
> 
>       insert an root element like <orders></orders> at the 
> begin and end
>       of the file...
> 
> 
> > -----Urspr�ngliche Nachricht-----
> > Von:        [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Gesendet am:        Mittwoch, 20. November 2002 09:26
> > An: [EMAIL PROTECTED]
> > Betreff:    [castor-dev] unmarshalling + tips & tricks
> >
> > Hi everyone.
> >
> > I'm trying to find best way to unmarshalling xml file with 
> multipe root
> > (<order>) tags.
> > My file has structure like this
> >
> > --------- beginning of file ------
> > <order>
> > smth xml data
> > </order>
> > <order>
> > smth xml data
> > </order>
> > <order>
> > smth xml data
> > </order>
> > <diferent_kind_of_order>
> > smth xml data
> > </diferent_kind_of_order>
> > ... etc ...
> > ---------- end of file ------------
> >
> > Is there any option in unmarshaller to unmarshall this structure?
> > (returning
> > unmarshalled table of objects or something)
> >
> > or maybe the best way is to tokenize that file as a kind of 
> XMLString and
> > putting simple (single) orders to unmarshallers input ?
> >
> > please answer if u have any (fast and optimal) sugesstions.
> > My file size (with orders) is about 100 MB.
> >
> > greetings
> > danny
> >
> > -----------------------------------------------------------
> > 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
> 
> 

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

Reply via email to