Castor XML Question: How to ignore wrapping elements  
Author Message
hotmail





PostPosted: 2004-4-24 3:39:00 Top

java-programmer, Castor XML Question: How to ignore wrapping elements I have an xml file that looks something like:

<Response>
<Invoice>
<PrimaryKey>239</PrimaryKey>
<OrderTotal>5893.03</OrderTotal>
</Invoice
</Response>

I am trying to map <Invoice> to my Invoice.java class. How do you get
Castor to ignore the outer <Response> tag? I could always do
pre-processing, but I would like to know if it's possible to do this
in the mapping xml file.

Thanks,
Ankur