Inheritance in Xml, (Xpointer??)

pete.kirkham at pete.kirkham at
Thu Dec 16 14:33:31 GMT 1999

> dubolc jean (xmlstat at
>  hi,
>  I am translating a UML chart into Xml with the IBM
>  parser XML4j and I've got a probleme:
>  How can a Child Element have two Parents?

XML files are structured as trees.  Thus you cannot represent this in the
structure of XML.
>  To make an element inheritate from another, is the
>  solution to put an attribute "inheritance" in the
>  Child with the value "yes" or "no".

You are better off having some form of element representing each of your
relations in a many to many scenario
You might want to look at
which contains some DTDs for representing UML, though these use some text
matching or element contents for relations (such as source or target of state
machine transitions) which might better be represented as an XLink attribute.


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list