You all have been very helpful so far. Thank you!

Now, I have another question...


I am trying to figure out how to completely ignore a node (and all its
children) during unmarshalling.

In other words, in the following example:

<root>
  <usefulNode>Useful information</usefulNode>
  <irreleventNode>Irrelevant information</irrelevantNode>
</root>


I would like to obtain the useful information in <usefulNode>, but I just
want to skip over the unwanted information in <irrelevantNode>.

I tried setTransient(true), but this didn't do the trick.


Is there an easy way to skip over entire nodes (including children) like
this that I haven't noticed? Or would I have to implement some type of
handler myself?

(For the children of unwanted nodes, can we just simply do nothing in the
start element event?)


Thanks again for all your help!! :-)


Dave



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

Reply via email to