Book a Demo

Author Topic: Trying to Import XMI  but can't find DTD  (Read 15032 times)

byuhk

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Trying to Import XMI  but can't find DTD
« on: March 21, 2012, 04:25:24 am »
Hi - Got the following error while trying to import an XMI file:
Error: Code=0x800c0006 Source=Line:2; Char:61 URL: file:///C:/Windows/system32/XMI-UML-99-10-15_xmi_1.0_uml_1.3.dtd Error Description=The system cannot locate the object specified. Error processing resource 'XML-UML-99-10-15_xmi_1.0_uml_1.3.dtd'.

Since it appears to be a problem with locating the dtd file, I looked up Help documentation that provided the following clue:
If the parser cannot find the DTD, it records an error and aborts processing; you must ensure the UML_EA.DTD file is in the current XML output path (generated by default).

Question: While dtd file does it need (I found UML_EA.DTD in the directory where the EA software was installed)?  And how do I specify the appropriate XML output path?

Thanks in advance! I'm really new to Enterprise Architect   :(

Brenda

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Trying to Import XMI  but can't find DTD
« Reply #1 on: March 21, 2012, 08:35:20 am »
It's looking for XMI-UML-99-10-15_xmi_1.0_uml_1.3.dtd , which says to me that EA didn't export the XMI. Look at what tool did export it and then get it from a machine with that installed.

Alternatively, you may be able to just remove the dtd declaration from the file and get it to import.

byuhk

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Trying to Import XMI  but can't find DTD
« Reply #2 on: March 22, 2012, 03:41:54 am »
Thank you, Simon! It worked after I simply removed the dtd declaration per your suggestion.  ;D

FYI, the xmi file was exported from ERwin, which was installed directly on my machine. But I didn't know if EA required that specified dtd, or it could use its own UML_EA.DTD; apparently it's the latter.

Thanks again for the quick reply.