[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Why validate? (was Re: Parser compliance)

  • From: David Megginson <david@m...>
  • To: xml-dev@i...
  • Date: 18 Nov 1999 08:26:45 -0500

element song download
ht@c... (Henry S. Thompson) writes:

> Maybe I was overly influenced by the fact that my first exposure to
> pointy brackets was in the context of SGML, but I think validation is
> pretty fundamental.

I don't think that anyone is arguing against the usefulness of
validation -- Tim's point is DTDs and other formal schemas alone
supply only a small subset the validation necessary for any
real-world information exchange.

> A DTD is like a contract, it helps both clients and service
> providers to maintain a satisfactory working relationship.

It's a very simply contract, though; consider the following DTD:

 <!ELEMENT song (title, composer)>
 <!ELEMENT title (#PCDATA)>
 <!ELEMENT composer (#PCDATA)>

Here's a document that's valid according to that DTD, and that doesn't 
fiddle with the DTD in its internal subset:

 <?xml version="1.0"?>
 <!DOCTYPE song SYSTEM "song.dtd">
  <title>David Bowie</title>
  <composer>Let's Dance</composer>

As Eliot, Tim, and I have all mentioned (in different contexts), the
primary contract *has* to be the human readable documentation, even
though the DTD is useful for detecting a certain subset of problems.

All the best,


David Megginson                 david@m...

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...)


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.