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

RE: SAX for Binary Encodings (SAD-SAX)


data binding binary


Alaric B Snell wrote:
> 

> This is a strong argument FOR making this as an extension to 
> SAX rather 
> than a new API - if you had to switch to a totally new API for all of 
> your XML reading to parse XPaths, changing bits of your code 
> that really 
> needn't change, that would [expletive deleted]!
> 


Alaric, 

I am still totally unconvinced that a "typed SAX" would be a good idea.  

I don't really see the benefit for applications, if they receive
"pre-converted" data from the type-aware parser rather than performing a
conversion themselves on the character data they receive from the parser.  I
do see a big benefit in letting each application choose how it wants to
represent that data in memory.

ASN.1 can work well with present, character-based SAX2.  ASN.1-based
applications do not need a "typed SAX" any more than current XML
applications need it.  And the benefits of having a universal parser API
which works equally well on every kind of XML document outweigh the
purported convenience of "pre-conversion" done by the parser.

I see the idea of a "typed SAX" as an attempt to introduce a form of
partial, shallow data binding into SAX parsing.  Unlike in true data
binding, here the parser would not be producing a complete "unmarshalled
value" for the entire instance, but would be attaching a million little
"unmarshalled values" to the leaves of a SAX event tree and to the
attributes.

Why do we need this?  Data binding is a very useful technique, as is generic
"typeless" parsing.  ASN.1 applications have been using data binding for
decades.  Now we need SAX for facilitating the coexistence of ASN.1
technologies and XML technologies and for enabling people to use them
together.  But we need SAX2, not a mix of SAX parsing and partial data
binding.

Alessandro



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.