Real Men use XML, was quote, was Google Earth...

Christopher Schmidt crschmidt at crschmidt.net
Wed Nov 15 10:03:09 EST 2006


On Tue, Nov 14, 2006 at 11:28:23PM -0500, Bill Ricker wrote:
> >  What XML gives you is a standard way to define the structure,
> >schema, and so on, in a way that is unambiguous and machine-friendly.
> 
> Right. And if you do NOT create a X-Schema or DTD, and are using a
> non-validating parser, and then have to write code to explore the DOM
> generated from whatever XML it receives, you've given up 80% of the
> advantage.
> 
> XHTML recaptulates HTML's errors of mixing presentation with contenat
> AND of accepting invalid syntax forgivingly.

XHTML *users* and viewer implementations do this, not the specification, 
for the record. The XHTML spec is very clear about what should be done
with non-validating XHTML: Complain loudly. Users complain, browsers do
what users want, XHTML rendering falls back to quirks mode.    

> >  As others have said, the major benefit to this is you don't have to
> >write a new parser and validator every time you create a new data
> >structure.  You just use the pre-existing XML library.
> 
> AND USE THE VALIDATOR.

No conforming XML parsing library will parse invalid XML.

Regards,
-- 
Christopher Schmidt
Web Developer


More information about the gnhlug-discuss mailing list