Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Zak on August 02, 2012, 09:35:48 pm

Title: Complext type with simpleContent in XML Schema UML
Post by: Zak on August 02, 2012, 09:35:48 pm
Hello,
I am trying to figure out how to model XSD Complex Type with simple content using XSD Uml profile in EA 9.3.
Is there a way to  to model it in UML using the XSD Profile in order to achieve such output ?
Code: [Select]
<xs:complexType name="testType1">
    <xs:simpleContent>
      <xs:extension base="xs:integer">
        <xs:attribute name="country" type="xs:string" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

The Generation mechanism seems to convert XSD Complex types into sequence/chocie/all elements but I didn't find how to model simpleContent .
I suppose there is also no way to change  the XML schema generation logic (XSD UML -> XSD code) in order to impact these settings.
 
Has anyone come across such requirement and figured out how to do it?
Title: Re: Complext type with simpleContent in XML Schema
Post by: Geert Bellekens on August 02, 2012, 10:52:25 pm
Can't you just import the xsd to see what EA makes of it?

Geert