When I try generating code from this schema fragment:
<complexType name="QuakeSet">
   <sequence>
    <element name="area-name" type="xsd:string"/>
    <element name="regions">
     <complexType>
      <sequence>
<element name="region" minOccurs="0" maxOccurs="unbounded" type="tns:Region"/>
      </sequence>
      <attribute name="count" type="xsd:int"/>
     </complexType>
    </element>
    <element name="quakes">
     <complexType>
      <sequence>
<element name="quake" minOccurs="0" maxOccurs="unbounded" type="tns:Quake"/>
      </sequence>
      <attribute name="count" type="xsd:int"/>
     </complexType>
    </element>
   </sequence>
  </complexType>
I get the following in my generated QuakeSet class:

           if ("area-name".equals(reader.getLocalName())){
                   String content = reader.getElementText();
                   object.setareaName(
org.apache.axis2.databinding.schema.util.ConverterUtil.convertTostring(content));
                   count++;
           }
          if ("regions".equals(reader.getLocalName())){
                    String content = reader.getElementText();
                   object.setregions(
org.apache.axis2.databinding.schema.util.ConverterUtil.convertTo(content));
                   count++;
            }
           if ("quakes".equals(reader.getLocalName())){
                    String content = reader.getElementText();
                   object.setquakes(
org.apache.axis2.databinding.schema.util.ConverterUtil.convertTo(content));
                   count++;
            }

Aside from the code basically not making sense (since the content of "regions" and "quakes" are other elements), there's no method ConverterUtil.convertTo(String). This is using 0.93. I'll try some variations on the schema, but thought I'd check if anyone knows what's going on here.

 - Dennis

Reply via email to