Book a Demo

Author Topic: Complext type with simpleContent in XML Schema UML  (Read 3462 times)

Zak

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Complext type with simpleContent in XML Schema UML
« 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?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Complext type with simpleContent in XML Schema
« Reply #1 on: August 02, 2012, 10:52:25 pm »
Can't you just import the xsd to see what EA makes of it?

Geert