Hi,
have a look at the UnmarshalListener as documented here:
http://castor.org/javadoc/org/exolab/castor/xml/UnmarshalListener.html
Regards
Werner
kirran wrote:
Hi All,
Any help is sincerely appreciated.
sample xml
---
<person name="tom"/>
<person name="brady"/>
class Person{
private name;
public void setName(String name){
this.name=name;
}
}
When i use castor, it gives me a collection of person objects. What i need
is a callback in my client code after each person
element is parsed into an object sequentially so that i can invoke
operations on each object. This is also inline with my req.
of not storing an entire collection of persons in memory at once.
Thanks in advance.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email