Re: [mdr-users] XMI Modules supported by MDR?
Martin Matula <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Peter, Pieter Van Gorp wrote: >Hi all, >I'm experiencing problems when processing XMI files using external >modules in MDR. My input file is a UML file in XMI generated by >MagicDraw 9. The problem occurred after moving my profile definitions >to a separate XMI file. MDR throws a "Content is not allowed in >prolog" exception. > > That's weird. MDR definitely does not print anything like that. Maybe the XML parser does that. Try if the file is a valid XML. >I found that AndroMDA contains special code for dealing with modules >(in the org.andromda.repositories.mdr.MDRXmiReferenceResolverContext >class). Should I follow the same strategy or does MDR provide >built-in module-support such that I don't have to wrap repository >classes? For instance, is there one specific MDR method that I should >call after loading an XMI file containing hrefs to elements in another >XMI file to make MDR treat the two XMI files as one large model? > > MDR does this automatically. In earlier versions of MagicDraw there was a bug in XMI serialization causing CompositionViolationException. I don't know if this was fixed in MagicDraw 9, but so far this does not seem to be your problem. Regards, Martin