Re: [Q] Text vs Binary Files

From: Michael Wojcik (mwojcik_at_newsguy.com)
Date: 05/29/04


Date: 29 May 2004 04:19:10 GMT


In article <9Rttc.4587$Eu3.44552281@news-text.cableinet.net>, Ben Measures <saint_abroadremove@removehotmail.com> writes:
> Arthur J. O'Dwyer wrote:
>
> XML was created to solve the problem of the HTML version mess.

No it wasn't. It was created to provide an SGML binding that would
be suitable for a wide range of structured document types, with a
view toward producing a platform-agnostic structured data format.
Look at the original XML Working Draft[1], not to mention any of the
official W3C XML documents since.

XHTML was created to clean up HTML - almost three years after XML 1.0
was released.

> It's so good it's almost magical.

It's just a popular SGML binding, really - the base technology was
there in the 1980s. XML is a clever use of SGML, true; for example,
XML Schema was a smart idea, since it replaces DTDs (which are not
themselves written in XML) with an equivalent which *is* written in
XML, so you only need one parser rather than two in order to process
both a document and its specification. And the peripheral standards
like XPath and XSLT and so forth are very handy. The real success
story of XML is the marketing, though.

I like XML as much as the next fellow, assuming he believes it's a
decent format for structured data in some situations, with a wide
range of tools available, and sufficiently popular that I have to
support it anyway. But it is not, of course, a silver bullet.

> Unless you're using somebody else's parser, which may not be broken.
> Such as libxml2 which is *very* unlikely to be broken.

I can't speak for libxml2, but many, many people use the Xerces
parser, and anyone who subscribes to the Xerces mailing lists
knows that there are still bugs aplenty there. Full-featured
XML parsers, particularly ones like Xerces that try to incorporate
everything allowed by the standard and provide multiple APIs in
the bargain, are big and tough to get right.

Hmm. Just checked, and libxml2 has had bug fixes released publically
as recently as 17 May.[2]

1. http://www.w3.org/TR/WD-xml-961114.html
2. http://www.xmlsoft.org/news.html

-- 
Michael Wojcik                  michael.wojcik@microfocus.com
Art is our chief means of breaking bread with the dead ... but the social
and political history of Europe would be exactly the same if Dante and
Shakespeare and Mozart had never lived.  -- W. H. Auden


Relevant Pages

  • Re: onclick - reassign new function with parameters after displaye
    ... It creates an HTML document which looks and acts correctly. ... The orginal XSL is creating a record that shows data from two different ... The form reads in those global variables. ... XML Node that forms the context of your little XSL. ...
    (microsoft.public.scripting.jscript)
  • Re: onclick - reassign new function with parameters after displaye
    ... As far as XML data, it is not on the client side, and my limted ... as global parameter the info I need to get correct record from HTML, ... needed into XSL proscessing. ... The form reads in those global variables. ...
    (microsoft.public.scripting.jscript)
  • Re: this vs event.scrElement
    ... You should discard XHTML 1.0 Transitional in favor of HTML 4.01 Transitional ... XML stylesheet rules apply. ... If this was parsed by an XML parser, ... The content model of the HTML `script' element is CDATA, ...
    (comp.lang.javascript)
  • Re: ruby html (or xhtml) forms class...
    ... xx is a library designed to extend ruby objects with html, xhtml, and xml ... xml or xhtml as clean looking and natural as ruby it self. ... attributes may be passed to any tag method as either symbol or string. ...
    (comp.lang.ruby)
  • Re: Google and validation
    ... But Google *should* have a serious look at their HTML, ... XML and standards facilitate modularity. ... the binary format can be made 10-50 times smaller ...
    (alt.internet.search-engines)