Hi Nuno,

Yes, this can be done using the <structure> element. Inside the <mapping> or <structure> for class A you just need to have:

 <structure name="B">
   <value name="attA" style="attribute" field="attA"/>
   <structure field="attB">
     <value name="attBA" style="attribute" field="attBA"/>
   </structure>
 </structure>

 - Dennis

Nuno Ferreira wrote:

Hi,
I´m trying to have a map of my confused XML ( that can´t be changed...), and i have this kind of problem. I have: public class A {
     private String attA;
     private B attB;
}
public class B {
     private String attBA;
}
With the XML associated with B Class i want to write into attA, something like this: <A>
     <B attBA="hello" attA="dad"/>
</A>
i want the hello into de B class but the dad into de attA of the A class, can i do this with the mapping??? cheers



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to