Book a Demo

Author Topic: xml schema for exported xmi  (Read 4901 times)

kate.jackson

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
xml schema for exported xmi
« on: December 18, 2006, 11:27:33 am »
Hello

Is there xsd file that's EA using for exporting to XMI 2.1 available for download anywhere ?
I would like to parse exported XMI file, but it will be pain no less without schema/dtd. I tried omg site but have not found any of it.

Best regards,
Kate Jackson

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: xml schema for exported xmi
« Reply #1 on: December 18, 2006, 01:41:05 pm »
Kate,

To the best of my knowledge the 'documents' referred to by the XMI element's attributes are simply placeholders - along the lines of how XHTML identifies which dialect (e.g. transitional) a given page adheres to. The OMG URI refers to a well-known specification, which many applications can be expected to support; the other one indicates that this is a specific implementation. In the latter case the real requirement is to use the URI as a unique identifier so that another implementation will not accidentally use the same ID - providing a name based on a company domain tends to avoid conflicts with other vendors' offerings.

You can download the XMI 2.1 specification from: http://www.omg.org/cgi-bin/doc?formal/2005-09-01.

HTH,
David
No, you can't have it!

VK

  • EA Administrator
  • EA User
  • *****
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Re: xml schema for exported xmi
« Reply #2 on: December 18, 2006, 01:49:55 pm »
Hello Kate,

EA uses the Schema published by OMG to serialize its UML models in XMI 2.1. This XSD can be found at : http://www.omg.org/cgi-bin/doc?ptc/2006-04-05

Cheers.

kate.jackson

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: xml schema for exported xmi
« Reply #3 on: December 20, 2006, 06:33:00 am »
Quote

EA uses the Schema published by OMG to serialize its UML models in XMI 2.1.


Thanks for the link, I just coulnd't find it. This schema however does not look like the one EA is using while exporting to XMI 2.1
For example:
Most of elements defined in schema, like packagedElement is of type
Code: [Select]
xmi:Any while in the exported file every packagedElement is of type
Code: [Select]
uml:packagedElement.
And why does the
Code: [Select]
xmi:XMI element, does not "know" about
Code: [Select]
uml:Model element if model is placed just under xmi node ?
Where are this differences coming from, and how is EA parsing XMI 2.1 files with such schema ? Anyone knows ?
I'm using EA 6.5 if it matters.

Thanks in advance
Kate Jackson