Hi,

The problem is

In terms of XSD, elements X and Y in complex type B (respectively) are of the same complex type A.
Class MA maps to the complex type A.


What would be the JiBX binding to realize this?  I have tried

<mapping name="A" class="MA">
  <value style="attribute"  name="a".../>
  <value style="attribute"  name="b".../>
  <value style="cdata"  .../>
</mapping>

<mapping name="B" class="MB">
  <value style="attribute"  .../>
   <value style="element" name="X" type="MA"/>
   <value style="element" name="Y" type="MA"/>
    ..........
</mapping>

With the above mapping, the attributes are not being set on class A with the following xml

<X a="asa" b="123">
      Text
</X>

<Y a="asa" b="123">
      Text
</Y>

Any clue what might I be doing wrong?

--

Venkatesh Prasad Ranganath,
Dept. Computing and Information Science,
Kansas State University, US.
web: http://www.cis.ksu.edu/~rvprasad



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to