Book a Demo

Author Topic: Import XML Failure... Root Package Not Found  (Read 4563 times)

ralderson

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Import XML Failure... Root Package Not Found
« on: January 20, 2005, 09:56:23 am »
I exported an XML document (a sample created from an XSD) from XML Spy and I am trying to import it into EA.  I get the error:

Root package not found at: XMI.content/UML:model/UML:Namespace.ownedElement/UML:package

Does anyone:

1) know what this means?
2) know what to do to make EA accept this XML?

TIA,
R. Alderson

Molto Mike

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
    • View Profile
Re: Import XML Failure... Root Package Not Found
« Reply #1 on: January 20, 2005, 10:52:33 pm »
Hey,

running the risk of asking a dumb question: what kind of content was in the XML file? Or in other words, which DTD/XSD was used to create XML file?

I'm asking this because from what you said I am not sure you are importing a supported schema.

AFAIK EA supports only XMI (the xml serialization of a UML model) and I think I have read about reverse engineering XSDs?

But I am pretty sure that you will not be successful in importing just any XML file (let's say a docbook document).

Am I totally off here?

Mike

thomaskilian

  • Guest
Re: Import XML Failure... Root Package Not Found
« Reply #2 on: January 21, 2005, 01:43:25 am »
You're probably trying to reverse engineer XSD. This is no possible at the moment. Sparx is working on a solution.

ralderson

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Import XML Failure... Root Package Not Found
« Reply #3 on: January 21, 2005, 09:10:54 am »
Thomas & Mike,

You are both correct.  I started with an XSD document, from which I had XML Spy generate a sample XML doc. I then tried to import that into EA, with the mentioned failure.

I also tried creating a new EA project and then expoted it to XML before adding any UML objects, thinking that it might generate a plain vanilla header into which I could past the XML doc.  It did, but I have no idea where to put the XML into it.  Any ideas?

Thanks,
R. Alderson

Molto Mike

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
    • View Profile
Re: Import XML Failure... Root Package Not Found
« Reply #4 on: January 21, 2005, 12:18:43 pm »
Hi there,

what kind of XSD are you talking about? EA can only handle XMI...

There is no way to load an arbitrary XML doc into EA.

Can you post the sample doc?

Mike

thomaskilian

  • Guest

ralderson

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Import XML Failure... Root Package Not Found
« Reply #6 on: January 24, 2005, 08:27:43 am »
Thanks!  I'll check out the referenced MS tool!  That may work as an interim solution until EA supports XSD.

R. Alderson