Inheritance in Xml, (Xpointer??)

pete.kirkham at minster.york.ac.uk pete.kirkham at minster.york.ac.uk
Thu Dec 16 14:33:31 GMT 1999


> dubolc jean (xmlstat at yahoo.com)
>  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
http://www.yy.cs.keio.ac.jp/~suzuki/project/uxf/uxf.html
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.

Pete.


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





More information about the Xml-dev mailing list