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

Re: Suggestions for a slightly less verbose (and easierto aut


aut is abbreviation for what
Rob Lugt wrote:
> [...snip...]  Surely Perl hackers use expat to do the hard work these days?

Many moons ago I wrote a regexp-based XML parser for Tcl.
That was followed-up shortly after by a wrapper for expat (TclExpat).

Naturally, my belief was that the pure-Tcl parser would fade
into obscurity, being (at least) 20 times slower than expat.
Much to my surprise, most of the correspondance and bug reports
that I get (bear in mind that a bug report means someone is
seriously using the thing) are for the pure-Tcl parser, not TclExpat.

It turns out that different parsers have characteristics that
are useful in certain situations.  A good engineer can determine
what is the best tool for a given job.

As far as changes to make XML simpler go, for your proposals I
say NO NO NO.  The second and third items make parsing XML
using simple tools, like REs, MUCH more difficult (it is difficult
enough already to do a proper job).

The first item (abbreviate end tags to </>) I don't like from
the pov of error recovery.  This form of abbreviation does not
make parsing easier, but nor does it make it harder.  Everything
is hunky-dory when the document is well-formed, but when that
is not the case (by virtue of author error, transmission fault,
cut-and-paste, whatever) then the task of correcting the problem
becomes much more difficult.

I recall this issue being thrashed out on this very list years ago,
so I suggest you consult the archives.

Cheers,
Steve Ball

-- 
Steve Ball            |   XSLT Standard Library   | Training & Seminars
Zveno Pty Ltd         |     Web Tcl Complete      |   XML XSL Schemas
http://www.zveno.com/ |      TclXML TclDOM        | Tcl, Web Development
Steve.Ball@z...  +---------------------------+---------------------
Ph. +61 2 6242 4099   |   Mobile (0413) 594 462   | Fax +61 2 6242 4099


PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.