Legacy Issue Number: 4818
Reading through the XMI 1.2 spec, I notice that a peculiar DTD production is
still there: the <9:PackageElementDef> on page 4-10.
In short, this means that if I have say a very simplified UML metamodel,
containing only the "Core" package, containing the single empty class
"ModelElement", I will get the following DTD (fixed elements omitted):
<!ELEMENT Uml:Core (Uml:ModelElement)*>
<!ELEMENT Uml:ModelElement EMPTY>
My problem here is this: why would you ever want to use the Uml:Core package
element? Since packages cannot be instantiated, there will never be a
package instance to serialize..
And, interestingly enough, the XML document production part of the
specification never uses the package element either.
Reported: XMI 1.1 — Thu, 31 Jan 2002 05:00 GMT
Updated: Wed, 11 Mar 2015 11:12 GMT