Book a Demo

Author Topic: One extra unnecessary line "<EAModel.paramSub />"  (Read 4343 times)

Durga

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
One extra unnecessary line "<EAModel.paramSub />"
« on: November 24, 2011, 09:06:43 pm »
hi all,

I am using EA version 2.5 for creating UML diagrams and generating XMI by using export to XMI option available in EA.

every time I am generating XMI file ,one extra line is coming as follws

      <XMI.extensions xmi.extender="Enterprise Architect 2.5">
            <EAStub xmi.id="EAID_B2DFD554_90F7_4541_AB3B_CC24C0DC66B6" name="CIM_ManagedElement" UMLType="Class"/>
            [highlight]<EAModel.paramSub/>[/highlight]
            <EAStub xmi.id="EAID_752C799D_AB5E_4cc6_BFD6_63AD4AD39D40" name="SVS_ComputerSystem" UMLType="Class"/>
            <EAStub xmi.id="EAID_C0542004_682D_4339_B795_6454A346C635" name="SVS_SoftwareIdentity" UMLType="Class"/>
            <EAStub xmi.id="EAID_AEBFEC3A_7616_4e5a_91F3_40AE38E7EA7C" name="SVS_PhysicalPackage" UMLType="Class"/>
            <EAStub xmi.id="EAID_71E83A55_CD57_4b58_8395_8B5D0E7ED232" name="SVS_InstalledSoftwareIdentity" UMLType="Class"/>
            <EAStub xmi.id="EAID_32A2FF24_F6FD_4758_91FB_4D350DEAE018" name="SVS_ElementSoftwareIdentity" UMLType="Class"/>
      </XMI.extensions>
</XMI>


in the whole XMI file      <EAModel.paramSub/>
there is no starting like             <EAModel.paramSub>
but still the end line is coming,can any one please help me,why this line is coming or its an Issue in EA version I am using

thanks in advance!



Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: One extra unnecessary line "
« Reply #1 on: November 25, 2011, 08:58:18 am »
I don't think I've ever used version 2.5.

Regardless, I think current versions of EA identify the extensions in the same way.

There's nothing wrong with having the highlighted line there though. It's valid XML (representing an empty element, not the close of an element) and inside the XMI.extensions anything is allowed.
« Last Edit: November 25, 2011, 08:59:11 am by simonm »

Durga

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: One extra unnecessary line " <EAModel.paramSub
« Reply #2 on: November 25, 2011, 04:41:22 pm »
sorry! we are using EA 9.0 version,and in our project we are parsing d XMI file content to fetch the classes details drawn in respective UML diagram.

But because of this empty tag line [highlight]<EAModel.paramSub/>[/highlight] code is giving seg fault.

can you please tell me is there is any way in creating UML diagrams or by customizing XMI generation we can remove this line. or is the problem with Corporate Edition which I am using ?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: One extra unnecessary line " <EAModel.paramSub
« Reply #3 on: November 25, 2011, 05:18:18 pm »
If your code cannot parse perfectly valid xmi you are suggesting to change the (perfectly valid) xmi ?!?

You can however create "standard" xmi that doesn't contain EA extensions, which might solve your problem...

Geert

PS. Are you serious that you guys actually wrote your own xml parser? Talk about the "not invented here" syndrome :o

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: One extra unnecessary line " <EAModel.paramSub
« Reply #4 on: November 25, 2011, 05:28:23 pm »
Quote
in the whole XMI file      <EAModel.paramSub/>
there is no starting like             <EAModel.paramSub>

The slash at the end indicates this is a self-closing XML tag.  This is pretty standard XML syntax for a tag that does not contain any content.

<EAModel.paramSub/>

is effectively the same as

<EAModel.paramSub></EAModel.paramSub>