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

RE: Microsoft's vision of data and the role of XML in that con


xmllinks.htm
John Cowan wrote:
 
> > as SAX, but we felt that the pull model was more approachable 
> > for the average developer...
>
> I quite agree: it is superior because of its better fit with 
> programmer insight.  Files, pipes, database cursors behave in 
> just this way: pull to read, push to write.


This has definitely been my experience. I used to be in love with SAX
until I started using .NET's XmlReader. For 9 of 10 tasks, the
pull-model approach is clearly more intuitive and easier to "get right"
for most of the developers I come in contact with. FWIW, now there's
also a JSR (173) in the works for a standard Java pull-model API[1].
 
Also, it's interesting to note that .NET's XmlWriter feels almost
identical to ContentHandler in SAX when it comes to writing. Writing XML
streams via ContentHandler was very natural so they kept that half of
the model around.


> > Normally a navigator implies buffering, while the forward-only 
> > cursor implies no buffering, but this really depends on 
> > implementation of a particular XML store.
> 
> Excellent.


My #1 favorite aspect of the .NET XML stack is the extensible design.
It's quite trivial to write custom implementations of XmlReader and
XPathNavigator over existing non-XML data stores or document formats.
This then makes it possible to use the built-in XPath, XSLT, XML Query
engines over such data. I've written some of these to expose the Windows
file system, registry, .NET assemblies, and zip files as Infosets[2].

[1] http://www.jcp.org/jsr/detail/173.jsp
[2] http://staff.develop.com/aarons/xmllinks.htm

-aaron

......................................................
. Aaron Skonnard, DevelopMentor (http://skonnard.com).
.  Essential XML Quick Reference available online!   .
.    Download PDFs: http://www.develop.com/books     .
......................................................



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.