Book a Demo

Author Topic: XMI 1.2 (missing DocType)  (Read 3577 times)

Gary W.

  • EA User
  • **
  • Posts: 139
  • Karma: +0/-0
    • View Profile
XMI 1.2 (missing DocType)
« on: June 15, 2005, 10:08:36 am »
Hi,

Why does Export Package to XMI, using V1.2, generate XML that cannot be validated?  I don't get the doctype line, and the namespace seems to be incorrect:
xmlns:UML="org.omg.xmi.namespace.UML"

If I check neither 1.0 nor 1.2, I get XML with:
<!DOCTYPE XMI SYSTEM "UML_EA.dtd">
with a valid namespace reference:
xmlns:UML="omg.org/UML1.3"

I'm trying to use the generated XMI as input to an XSLT transform for me to convert the Class Model.

I'm assuming that V1.2 is the latest and greatest, and am trying for that... however, I can fall back to V1.1 if need be.

Just curious why the the V1.2 Export Package to XMI seems to 'not work'...

TIA,
Gary Wong

lixlix

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: XMI 1.2 (missing DocType)
« Reply #1 on: July 29, 2005, 02:36:06 am »
Hi,

I encountered the same problem: checking XMI 1.2 when exporting a package as XMI results in an XMI 1.2 file, but the DTD that has been put aside by EA states the xmi.version attribute to be FIXED to 1.1.

Furthermore, if adding a DOCTYPE relating the XMI file to the DTD, the file turns out to be *NOT* compliant to the DTD.

Does anyone has any hints and/or comments on this? XMI export is a vital feature, so we got to rely on it.

Thanks in advance,
Falk

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: XMI 1.2 (missing DocType)
« Reply #2 on: July 31, 2005, 03:44:58 pm »
Well, the reason why there is no DOCTYPE, is because no DTD exists for XMI 1.2.

Each version of XMI is different and therefore needs a different DTD.  That's why the DTD for XMI 1.1 specifies that the xmi.version is fixed to 1.1.

Finally, XMI 1.2 is not the latest and greatest.  EA's native XMI is 1.1.  XMI 1.2 is available for interoperability with other tools that use XMI 1.2.

I hope that this helps clear some things up.

Simon