I asked a nearly identical question last week: http://sourceforge.net/mailarchive/forum.php?thread_name=alpine.BSF.1.10.0804162303330.57292%40peabody.verizon.net&forum_name=jibx-users

The binding would be something like:

<structure name="circle">
  <stucture name="radius">
    <value style="attribute" name="inches" field="units"/>
    <value style="text" field="radius"/>
  </structure>
</structure>


Steve

On Mon, 21 Apr 2008, Harp, George wrote:


What would the binding information for the following xml be? (I don?t quit 
understand how to bind attributes)

<circle>
   <radius units="inches">10</radius>
</circle>

 

Public class Circle

{
    private String units;
    private double radius;
}


Thanks in advance
 

George Harp
Traffic.com Development
NAVTEQ - Chicago
(T)  +312-894-7225
[EMAIL PROTECTED]
www.navteq.com
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to