[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: multiple parents
dubolc jean wrote: > 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? > > To make an element inheritate from another, is the > solution to put an attribute "inheritance" in the > Child with the value "yes" or "no". If you're looking for XML Element type inheritance, there is not yet any such mechanism, except for architype refinement as (not yet really) defined in XML Schemas (http://www.w3.org/TR/xmlschema-1). If you're just trying to represent abstract parent-child relationships in your xml you can use the NMTOKENS (or IDREFS) attribute type as in: <uml.chart> <element name="element1">...</element> <element name="element2">...</element> <element name="element3" parents="element1 element2">...</element> </uml.chart> or you can use seperate elements, as in: <uml.chart> <element name="element1">...</element> <element name="element2">...</element> <element name="element3> <parents> <parent name="element1"/> <parent name="element2"/> <parents> ... </element> </uml.chart> Good luck... -Ray xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1 To unsubscribe, mailto:majordomo@i... the following message; unsubscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|