Hi,

I would like to know whether it is possible with Castor to marshal several
objects to the same XML file and then to unmarshal them from this file in
the same order. Currently I am trying to do something like this:

MyObject anObject, anotherObject;
..
marshaller.marshal(anObject);
marshaller.marshal(anotherObject);
..
anObject         = (MyObject) unmarshaller.unmarshal(reader);
anotherObject = (MyObject) unmarshaller.unmarshal(reader);

However I am getting an "SAXException: Parsing Error". It seems that the
generated XML file is not valid.

Any help would be appreciated.

Thanks,

Vahan Harput
[EMAIL PROTECTED]



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

Reply via email to