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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: question for a friend

[ Lists Home | Date Index | Thread Index ]
  • From: Daniel Austin <daniela@cnet.com>
  • To: "'Lisa Rein'" <lisarein@finetuning.com>, xml-dev@ic.ac.uk
  • Date: Thu, 10 Jun 1999 16:03:09 -0700

Lisa,

	This sort of structure cannot be represented easily in XML, since it
cannot be mapped to a simple heirarchichal tree structure. In practice, what
usually happens is that a third element is used to contain the internal
paragraphs and additional information beyond the DTD is required for
complete validity testing/processing. But your friend is correct in the
sense that there are (many) data structures that cannot be mapped to XML;
XML really applies only to semi-structured data sets where relationships
between elements are restricted to parent-child relationships - a
heirarchical tree. 
Additional, more complex relationships among elements must be specified
outside of XML.

Regards,

D-

*********************************************************************
Daniel Austin, Director of Research and Development, CNET
daniela@cnet.com    415-395-7800 x1438
"To change the old into the new, and the shapes of things to come..."  




> -----Original Message-----
> From: Lisa Rein [mailto:lisarein@finetuning.com]
> Sent: Thursday, June 10, 1999 4:14 PM
> To: xml-dev@ic.ac.uk
> Subject: question for a friend
> 
> 
> Hello,
> 
> A friend of mine asked me a question I didn't feel like I gave him a
> good enough answer for, so I bring it to you...
> 
> 
> say we have a part of a document below (probably a part of a very long
> document).  Yes i KNOW this is misnested.  this is the point.  he was
> saying that this kind of context couldn't be represented using a
> well-formed structure:
> 
> <realestate>
> FFFFFFFFFFFFFFFFFFFFFFFFFFFFF
> FFFFFFFFFFFFFFFFFFFFFFFFF
> FFFFFFFFFFFFFFFFFFFFFFFFF
> <newyork>
> FFFFFFFFFFFFFFFFFFF
> FFFFFFFFFFFFFFFFFFFFFFFFFFFFF
> FFFFFFFFFFFFFFFFFFFFFFFFF
> FFFFFFFFFFFFFFFFFFFFFFFFF
> 
> FFFFFFFFFFFFFFFFFFFFFFFFFFFFF
> FFFFFFFFFFFFFFFFFFFFFFFFF
> FFFFFFFFFFFFFFFFFFFFFFFFF
> </realestate>
> 
> FFFFFFFFFFFFFFFFFFFFFFFFFFFFF
> FFFFFFFFFFFFFFFFFFFFFFFFF
> FFFFFFFFFFFFFFFFFFFFFFFFF
> </new york>
> 
> where the two paragraphs in the middle are "realestate:newyork", but
> only if they are taken together.
> 
> 
> No matter how I represented the structure above in a 
> well-formed manner,
> I couldn't quite pull off the "only when taken together" part.
> 
> Any suggestions?
> 
> thanks,
> 
> lisa
> 
> 
http://www.finetuning.com

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 (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe 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)

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 (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe 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