I'm confused about proper use of a binding file to generate code for nested elements.  Simplified xsd:
 <xs:element name="a">
   <xs:complexType>
     <xs:sequence>
      <xs:element name="b" type="xs:string"/>
     </xs:sequence>
   </xs:complexType>
 </xs
:element>
What I want is a class that looks like:
class A {
  my.CompressedString b;
  CompressedString getB() {}
  void setB(CompressedString x) {}
}

I thought I put the following in my binding file, but it is silently ignored:
<elementBinding name="a/b">
  <member name="b"
          java-type="my.CompressedString"
          handler="my.CompressedStringHandler"/>
</elementBinding>

but what I need to do to get it to actually work is:
<elementBinding name="a">
  <java-class name="A"/>
  <elementBinding name="b">
    <member name="b"
          java-type="my.CompressedString"
          handler="my.CompressedStringHandler"/>
  </elementBinding>
</elementBinding>
I presume that I'm missing something... wrong binding name syntax, maybe - suggestions?

Thanks,
    Michael

--
Michael Thome
BBN Technologies 10 Moulton St, Cambridge MA 02138 USA
phone: +1 617 873 1853
------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

Reply via email to