OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   re: Inheritance in Xml, (Xpointer??)

[ Lists Home | Date Index | Thread Index ]
  • From: pete.kirkham@minster.york.ac.uk
  • To: xmlstat@yahoo.com, xml-dev@ic.ac.uk
  • Date: Thu, 16 Dec 1999 14:30:46 +0000

> dubolc jean (xmlstat@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@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@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS