Hi,

It is not directly possible in Castor and I don't think
it is a good feature to add. However I see 2 work-arounds:

        - you can register to your SAXParser the UnmarshallerHandler.java as a 
ContentHandler and
        implement org.xml.sax.XMLFilter to filter your XML stream. 
        - you can use XSL Transformation and then passing the result to Castor
I realize that these work-arounds might not fit totally your needs but
they are the only one I see for the moment, maybe someone has a better idea?

Hope this helps,

Arnaud


-> -----Original Message-----
-> From: Bhaskar_V [mailto:[EMAIL PROTECTED]]
-> Sent: Thursday, September 27, 2001 12:16 AM
-> To: [EMAIL PROTECTED]
-> Subject: [castor-dev] Doubt in Unmarshalling
-> 
-> 
-> hi,
-> How can unmarshall only one record at a time. (i.e) i don't want 
-> my sequence
-> objects in my xml file to be loaded into an enumeration or array 
-> or vector
-> immediately during parsing. I want to unmarshall only one object 
-> at a time
-> (something similar to startElement in SAX parser). I have around 1000
-> records in my xml file-  each of min 100KB size - and so getting it as
-> enumeration or vector, i forsee a memory problem. Is there any 
-> work around
-> for this in castor?
-> 
-> Regards,
-> V.Bhaskar
-> 
-> ----------------------------------------------------------- 
-> 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