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

RE: Can xpath replace DOM/SAX?


xpath replace
Take a look at the Microsoft .Net Framework SDK 1.1, which is available for download for free (http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid=28000451 ).
The System.Xml.XPath.XPathDocument class provides a fast, read-only cache for XML document processing using XSLT. This class is optimized for XSLT processing and the XPath data model.
 
Arjan Burggraaf

 -----Oorspronkelijk bericht-----
Van: Hui Tian [mailto:huitian@a...]
Verzonden: maandag 12 mei 2003 7:14
Aan: xml-dev@l...
Onderwerp: Can xpath replace DOM/SAX?

I'm working on a XML/web services related project. It's interesting to note that all my XML processing needs can be met by xpath. xpath also is much simpler to program than DOM/SAX. This makes me wondering if one can directly build xpath engine and bypass the parsing step.
 
Before going down the route, I'd like to hear your expert's view on this subject. If I just implement xpath directly to access XML files, without a parser layer, would I run into problems later? Even though I don't see a need for DOM/SAX now, I'm afraid that in the future there my be something that require them. It would be great if you can provide me a common case of where xpath is not sufficient and a parser is needed.
 
I think the same thought has been applied by Java binding people. In my original view of XML processing, the flow goes like:
    XML file --> parsing --> binding or accessing
 
Java binding people skiped the parsing step. Is it a good idea for accessing people to also skip the parsing step?
 
A bolder hypothesis (with limited knowledge) is: one can always find a shortcut to bypass parsing, to serve higher level application's needs. If it's true then DOM/SAX will gradually disappear from real products, because of their respective shortcomings. xpath seems to be a better step stone for lots of other processing to base on.
 
Thanks,
 
Hui

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.