[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: question for a friend
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@c... 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@f...] > Sent: Thursday, June 10, 1999 4:14 PM > To: xml-dev@i... > 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@i... 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@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...) 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 (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe 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
|