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

RE: XML APIs - What's next?


sql visitation model
Mike,

> From: Mike Champion [mailto:mc@x...] 
>

> Is the XML InfoSet just too low-level to bother 
> trying to expose to ordinary users?  Do most people want to 
> use a data binding tool to 
> hide the XML as a serialization format, or would a clean API 
> (e.g., that was integrated with XPath and XSLT, hid bizarre 
> syntax such as CDATA sections, and had a sensible model of 
> how text was related 
> to elements) find some customers?

Definitely. An Infoset Object Model would be received with gratitude. 

The thing got do would be to key off the pull based APIs and add
visitation. That way we treat an IOM as an AST. I didn't like the pull
based stuff and said as much here a while back, but I'm coming around.
What I didn't like is the way they use external iteration when a visitor
is a better design choice. Having both is fine, but over time my
codebase will be in better state for using visitors instead of external
iterators.

Piling on convenience functions (ie XPath) into an IOM is bad design.
With an AST data structure, they are properly applied as operations over
that tree. The only excuse for it is trying to build an architectural
franchise around an API's feature set (anyway APIs are not the right way
to lock in developers anymore).

Strictly speaking SAX isn't a proper visitor; you don't control the
descent, the parser does and there's no notions of leaf or position in
SAX. The future of SAX would seem to be a compiler target for a
declarative way of handling infoset events (cf Benoit Marchal's work).

Anyway Elliotte said he's going to sort it out for us ;) I'm betting
he's looking hard at how we walk the tree.

regards
Bill de hÓra

..
Propylon
www.propylon.com 

 


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.