Hello,
I am currently try to write an XMI file. This XMI File ist very short.
<?xml version = '1.0' encoding = 'UTF-8' ?>
<XMI xmi.version = '1.2' xmlns:UML = 'org.omg.xmi.namespace.UML' timestamp = 'Mon Jul 17 11:01:18 CEST 2006'>
<XMI.header> <XMI.header>
<XMI.documentation>
<XMI.exporter>ArgoUML (using Netbeans XMI Writer version 1.0)</XMI.exporter>
<XMI.exporterVersion>0.20.x</XMI.exporterVersion>
</XMI.documentation>
<XMI.metamodel xmi.name="UML" xmi.version="1.4"/> </XMI.header>
</XMI.header>
<XMI.content>
<UML:Model xmi.id = '.:0000000000000737' name = 'untitledModel' isSpecification = 'false'
isRoot = 'false' isLeaf = 'false' isAbstract = 'false'>
<UML:Namespace.ownedElement>
<UML:Class xmi.id = '.:0000000000000738' name = 'Meine Klasse' visibility = 'public'
isSpecification = 'false' isRoot = 'false' isLeaf = 'false' isAbstract = 'false'
isActive = 'false'/>
</UML:Namespace.ownedElement>
</UML:Model>
</XMI.content>
</XMI>
Copy this content to a file an try to import this to ArgoUML.
I get an error:
Cause : org.argouml.persistence.OpenException: org.argouml.model.UmlException: javax.jmi.xmi.MalformedXMIException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.argouml.persistence.XMIParser.readModels(XMIParser.java:167)
at org.argouml.persistence.XMIParser.readModels(XMIParser.java:126)
at org.argouml.persistence.XmiFilePersister.doLoad(XmiFilePersister.java:177)
at org.argouml.ui.ProjectBrowser.loadProject(ProjectBrowser.java:1148)
at org.argouml.ui.ActionImportXMI.actionPerformed(ActionImportXMI.java:128)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
Could anybody help me in this issue?
Thanks
- [argouml-users] Problem Import XMI Sebastian Fladischer
- Re: [argouml-users] Problem Import XMI Bob Tarling
