Book a Demo

Author Topic: XML Schema import question  (Read 3275 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
XML Schema import question
« on: August 31, 2015, 10:21:22 pm »
Hi,

I'm importing separate XSD files with a number of complexTypes.
They all belong to the same namespace test1.

In tst_ElementC.xsd, tst_ElementC_2 complex type has an element of type test1:tst_ElementC_1, which is declared in the same XSD file.
Result in EA: an association is created between tst_ElementC_1 & tst_ElementC_2. -> expected result (OK)

In tst_ElementC.xsd, tst_ElementC_1 complex type has an element (elementA) of type test1:tst_ElementA, which declared in tst_ElementA.xsd.
Result in EA: elementA is declared as an attribute of tst_ElementC_1 which type is tst_ElementA -> I was expecting an association between tst_ElementC_1 and tst_ElementA.

Is there any way to achieve what I'm looking for, or is there a reason explaining why we're getting this?
Note that I chose the option to import XSD Elements/Attributes as UML Associations.

As a workaround I could define a script that will replace all attribute types with associations but this can be time consuming both for me and the users.

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com