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

Re: Polymorphic strings (Was: SAX for Binary Encodin


encodin
On November 9, 2003 11:38 am, you wrote:
> Tyler Close wrote:
> > Could the two sides compromise on a modified SAX API
> > that was defined in terms of a polymorphic string type?
>
> 	I think this would be a terrible mistake if it requires
> changes to the SAX interface.

Remember that the whole point of the suggestion is that it does not require 
such changes (but only for languages that fully support polymorphism). A SAX 
handler implementation would be completely oblivious to the change.

Like I said, the Java implementation of the SAX API does not support 
polymorphism, so the solution is less elegant here. One possibility would be 
to modify org.xml.sax.helpers.DefaultHandler to accept the polymorphic string 
type and then redispatch the call to the existing method that takes the 
concrete character array.

> 	Your proposal, if accepted, would require that the many users
> of SAX would have to deal with and be confused by the polymorphic
> string type even if they don't need the benefits it provides. As has
> been pointed out many times in this thread, the whole XML world is
> already too confusing. We can't afford to make it more confusing by
> introducing such complexities.

In a language that supports polymorphism, the users wouldn't even realize that 
they were dealing with a different implementation. It's too bad we're working 
with languages that don't even support the language abstractions known in the 
'70s (or earlier).

Tyler

-- 
The union of REST and capability-based security.
http://www.waterken.com/dev/Web/


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.