Unless I am missing something it appears as though there might be a problem with the <map-to xml="xxxx"> directive.  It appears to work fine if the element is one or 2 levels deep.  However it doesnt work if your mapping to an element 4 levels deep (not sure about 3)  At least this has been my experience.
 
I had a document which looks like
 
<envelope>
    <header/>
    <body>
        <find>
          <data>
               <subdata>
           </data>
           <data>
               <subdata>
           </data>
           <data>
              <subdata>
           </data>
        </find>
     </body>
</envelop>
 
when i issue a map-to data, castor will not unmarshall my data properely, however if i extraxt the xml from the "find" node, unmarshalling occurs as expected.  I am pulling the "data" nodes into an array list but i dont think that has anything to do with it.
 
-- Jay Stuart

Reply via email to