Book a Demo

Author Topic: XSD Import/Export troubles.  (Read 3826 times)

Workshop_Alex

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • It's better to fade away than to burn out...
    • View Profile
XSD Import/Export troubles.
« on: September 11, 2006, 01:20:11 am »
I have an existing XSD file which I received from a customer. So to document it, I used "Project/XML Schema/Import XML Schema" to import the XML schema. And then regretted it a bit...

When I told EA to import attributes as associations I ended up with a large schema with plenty of links. If I specified 'UML Attributes' instead, I ended up with almost no links anywhere.

Then I tried to do a round-trip to let it generate the XSD again and what worries me is that I get a very different schema where quite a few items were omitted.

Tried it again with a smaller XSD file and this time the damage was less. One attribute was removed and from two nodes all child nodes have been removed.

And in all cases the generated diagrams seem to be erroneous althoug after discovering the above I did not even want to examine it that well anymore.

So it seems to me that the whole XSD Import/Export needs a few fixes...

VK

  • EA Administrator
  • EA User
  • *****
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Re: XSD Import/Export troubles.
« Reply #1 on: September 11, 2006, 07:53:37 pm »
For large Schemas, the advantage of importing with "UML Attributes" option is that it prevents connectors from flying all over the diagram.

Importing as attributes does not lose the relationship - the "Type" of the attribute will point to the concerned class.

Regarding EA losing a few items on round-tripping XSDs, send in a bug report with a sample file reproducing the issue so that we can investigate the issue further.