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

Re: Parsing efficiency? - why not 'compile'????


Re:  Parsing efficiency? - why not 'compile'????
"Alaric B. Snell" wrote:

> Thing is, I reckon any reasonably binxml parser would come with a tool (and it
> would be a simple tool to write) that maps it to and from textual XML. And it
> should be the case that parsers accept both text-XML and bin-XML while
> outputting your choice of format

Petitio principii, I'm afraid. An XML parser, by definition, accepts XML as
syntax as input. If there is *a* (single) mapping known to a parser from XML
syntax to a particular binary form, then that parser is suited only for one
particular and limited application of XML [see last week's iteration of that
permathread]. XML says nothing of the particular instantiation which is built on
the output of a parse; if it does it is not XML but one narrowly constrained
application of a particular datastructure, and that of course requires a priori
agreement between creators and all of the consumers of their documents as to the
specific schematics of that instantiated structure.

Again, as I have often pointed out, this is not a new controversy. Some of us who
have been through it before came to XML because the well-formed document was the
essential premise to avoid the pernicious path of infosets and the fluid
preverbal Gestalt. If you premise some new 'XML' on a datastructure rather than
on the syntax of the concrete instance it becomes useless for the very jobs that
it is now uniquely suited for. Fortunately, there are now alternative tools. LMNL
in particular, though it is defined in terms of a data model, insists on the
parsing of a text as the basis of constructing ranges against which a variety of
data structures may be instantiated. This has the salutary effect of allowing
LMNL to handle a number of syntaxes mapped concurrently to differing
datastructures (not so incidentally trumping on both sides your mapping of a
single syntax to a single binXML).

Respectfully,

Walter Perry


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.