Getting elements from a XSD Complex Type - ATL [message #1228778] |
Tue, 07 January 2014 21:47  |
Eclipse User |
|
|
|
Hi guys,
My transformation is XSD -> UML
I tried a little bit everything to get the elements from a complex type or to know with which complex type an given element is related to (if any):
Here is .xsd file example:
<xs:element name="sayGoodbye" type="tns:sayGoodbye"/>
<xs:element name="sayGoodbyeResponse" type="tns:sayGoodbyeResponse"/>
<xs:element name="sayHello" type="tns:sayHello"/>
<xs:element name="sayHelloResponse" type="tns:sayHelloResponse"/>
<xs:complexType name="sayHello">
<xs:sequence>
<xs:element name="arg0" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="sayHelloResponse">
<xs:sequence>
<xs:element name="return" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="sayGoodbye">
<xs:sequence>
<xs:element name="arg0" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="sayGoodbyeResponse">
<xs:sequence>
<xs:element name="return" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
By now.. I couldn't get the list of elements from a XSD!XSDComplexTypeDefinition (if is really here I will find).. or to get the complextype related to a XSD!XSDElementDeclaration. If anyone could help me.
Many thanks in advance
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05154 seconds