The safest way to do this to "flatten" the project importing all the
external references before exporting the file from MagicDraw.  ArgoUML
doesn't really handle hrefs well.  The problem areas are things that look
like this:
 
<UML:Classifier
href="andromda-profile-datatype-3.1.xml.zip|_9_0_1fe00f9_1119336925531_36407
9_66">
 
If you use MagicDraw to import all the external references (using the
Modules menu), things should work better.  The other thing that you want to
change when exporting from MagicDraw is the "rich XMI" setting.  You
shouldn't see this comment:
 
     <!-- This xmi file is optimized for MagicDraw UML. Some references are
not saved. -->
     <!-- Change MagicDraw UML environment options property General->.Save
Rich XMI -->
 
at the top of the XMI file if you've done it correctly.
 
If you want to try and read the file with the embedded HREFs, you may be
able to do it by defining the property
"org.argouml.model.modules_search_path" to point to the location where the
AndroMDA profile is stored by using something like 
 
  > java -Dorg.argouml.model.modules_search_path="c:/Documents and
Settings/tom.morris/.maven/repository/andromda/xml.zips/"
 
on the command line.  You can also use a comma separated list if you have
multiple locations that you would like searched.
 
I suspect that as soon as you try to modify the model and save it again that
the HREFs will get broken, so I don't really recommend this method.
 
Tom
 

-----Original Message-----
From: Victor Hugo [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 23, 2007 9:33 AM
To: [email protected]
Subject: [argouml-users] problems migrating magic draw 9.5 to argoUML 0.24


Hi guys, I'm having some problems while trying to migrate an XMI file, that
was made using the magic draw 9.5, to the latest stable version of the
ArgoUML, the 0.24. I followed the tips posted here:
http://galaxy.andromda.org/forum/viewtopic.php?t=2245
<http://galaxy.andromda.org/forum/viewtopic.php?t=2245&highlight=migrating>
&highlight=migrating 
I've already made the copy of the files from the andromda dir to the argouml
dir but still, when I try to open the model in ArgoUML I keep getting this
exception: XMI format error : org.argouml.model.XmiException:
javax.jmi.xmi.MalformedXMIException:
org.netbeans.lib.jmi.util.DebugException: Content is not allowed in prolog. 

The model is extremely simple, it has only 1 class with a single attribute,
and of course it uses the andromda uml profile. 
(I'm trying something simple, so i can migrate the more complex models
later) 

The XMI file can be found here: http://ccsa.ufrn.br/raphaelm/Test.xmi 
or here http://www.engcomp.ufrn.br/~rocknroll/Test.xmi
<http://www.engcomp.ufrn.br/%7Erocknroll/Test.xmi>  

I'd like to thank you guys in advance and congratulate for the great project
that ArgoUML has become. 

Reply via email to