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

adding addressing capabilities to the DOM

  • From: "Aaron Skonnard" <aarons@d...>
  • To: "Xml-Dev@Xml. Org" <xml-dev@x...>
  • Date: Sat, 15 Apr 2000 17:33:59 -0600

adding addressing capabilities to the DOM
After looking over the recently released DOM Level 3 requirements document,
there has been some discussion on adding an addressing API (similar to the
selectNodes function in MSXML). The proposed idea is to introduce a method
on the Node interface that takes a scheme specific addressing expression
(e.g., XPath 1.0, the product of the XQL WG, etc...) and returns a NodeList:

NodeList getNodes(scheme, expression)

The scheme identifies that language used in the expression. Today, the main
standard addressing language in place is XPath 1.0, but this makes the API
extensible for future versions of XPath or other languages (similar to the
way XPointer works). With something like this in place, DOM developers can
harness the power of XPath to simplify typical navigation tasks in a
standard way:

NodeList books = doc.getNodes("xpath", "/books//book[@topic='xml']/author");

The default scheme could also be specified for the entire Document so it
doesn't have to specified on each method call. Similar functionality could
also be added to the the Traversal API (as another constructor type to
NodeIterator and TreeWalker).

In order to help the DOM WG decide on such an issue, the goal of this email
is to gather the general interest level from the xml-dev'ers.

Who wants it?


BTW, if you have an opinion on this, please copy www-dom-request@w... in
your response.

-aaron


***************************************************************************
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.