Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: DaveO on November 07, 2007, 09:26:02 am

Title: XMI inport error
Post by: DaveO on November 07, 2007, 09:26:02 am
I am attempting to load the HL7-RIM xmi file and I get the following error:

Error:
Code = 0xc00ce51f
Source = Line :1; char : 5
Error Description = Invalid Unicode character

Any assistance with resolving this problem would be greatly apreciated.

Thanks
daveo

Here are the first few lines of the input file:


<?xml version = '1.0' encoding = 'UTF-16' ?>
<!DOCTYPE XMI SYSTEM 'uml.dtd' [
<!ELEMENT uisToolName (#PCDATA)>
<!ELEMENT uisDiagramName (#PCDATA)>
<!ELEMENT uisDiagramStyle (#PCDATA)>
<!ELEMENT uisDiagramPresentation (Foundation.Auxiliary_Elements.Presentation*)>
<!ELEMENT UISDiagram (uisDiagramName, uisToolName, uisDiagramStyle, uisDiagramPresentation*)>
<!ATTLIST UISDiagram xmi.id ID #REQUIRED>
<!ELEMENT uisOwnedDiagram (UISDiagram*)>
<!ELEMENT UISModelElement (uisOwnedDiagram*)>
<!ATTLIST UISModelElement xmi.id ID #REQUIRED>
<!ENTITY bs "&#38;#08;">
<!ENTITY vt "&#38;#11;">
<!ENTITY ff "&#38;#12;">
]>
<XMI xmi.version = '1.0'>
 <XMI.header>
   <XMI.documentation>
     <XMI.exporter>Unisys.IntegratePlus.2</XMI.exporter>
     <XMI.exporterVersion>4.0.3</XMI.exporterVersion>
   </XMI.documentation>
   <XMI.metamodel xmi.name = 'UML' xmi.version = '1.1'/>
 </XMI.header>
Title: Re: XMI inport error
Post by: dballard on November 07, 2007, 09:51:09 am
Try UTF-8 and see if the file loads.

Dave Ballard
Title: Re: XMI inport error
Post by: DaveO on November 07, 2007, 10:08:42 am
Just tried the 8  it and got the same error
Title: Re: XMI inport error
Post by: dballard on November 07, 2007, 11:37:15 am
I cut and pasted your DTD and tested it with Meta Integration Model Bridge as a DTD HL7 and it says that line 2 has a syntax error.

Dave.
Title: Re: XMI inport error
Post by: VK on November 07, 2007, 01:50:16 pm
Hi daveo,

The lines 2 - 15 in your input file extends "uml.DTD". EA does not support such an inline DTD extension. Delete these lines and then import the file into EA.

Cheers.