I have been using generateDS for many years (4+) and have loved it except
for one issue that has always plagued me and suspect it is just that I have
not figured out how to have generateDS take care of it. I took the schema I
was given and broke it into many parts to prevent duplicate inner class
name collisions... I would like to have one schema file.


<xs:schema>
  <xs:element name="classA">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="inner">
          <xs:complexType>
            <xs:attribute name="attrA1" type="string"/>
            <xs:attribute name="attrA2" type="string"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:element name="classB">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="inner">
          <xs:complexType>
            <xs:attribute name="attrB1" type="string"/>
            <xs:attribute name="attrB2" type="string"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>


In the early days this would only generate one instance of inner for the
last one in the schema which would have included the code to handle attrB1
and attrB2.

Now (well 2.12b anyway) I get two instances of inner sort of... I
get innerType and innerType1. But now to use this I have no predictable way
to pick the inner type names. It would be great if I could specify a switch
so the inner class names were based on the hierarchy and it auto generated
classA_inner and classB_inner or something along these lines so I would
know what the names are and could even generate the name...

If there is a way to do this now (2.12b) please let me know how and if not
I bet there are others that would like to see this?

How did I get here? Not my schema I just have to use it to access a
webservice...
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to