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

SAX2: Querying the client

  • From: David Megginson <david@m...>
  • To: "'xml-dev@x...'" <xml-dev@x...>
  • Date: Tue, 14 Mar 2000 20:50:34 -0500 (EST)

querying a client
Box, Don writes:

 > 1) The feature mechanism is busted wrt the two namespace-related
 > features.  It assumes that the ContentHandler interface will only
 > be called by an XMLReader implementation. This makes it tough for
 > folks who want to use ContentHandler (and friends) as a generic
 > interface for modeling the Infoset as a stream of method
 > invocations (see David Brownell's stuff for an example of one such
 > architecture), since one doesn't know generically whether or not to
 > deliver namespace declarations as attributes or not. In general,
 > the "consumer" of ContentHandler should be able to interrogate the
 > namespace management policy of the receiver of the SAX events.

In general, I've tried to keep the information flow in SAX one-way,
though we violated that with EntityResolver.  

If we were to make such a change, we would have to allow other sorts
of queries as well, so a more general client-side
get/setFeature/Property would make the most sense -- why make
Namespace processing a special case?

That said, I'm not comfortable making such a major structural change
this late; I think that it is more suitable for an architectural layer 
built higher up (where, maybe, the ContentHandler can register itself
somehow).


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.