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

Re: Xpath and DOM

  • From: "Frank Boumphrey" <bckman@i...>
  • To: "David Orchard" <orchard@p...>, "xml-dev" <xml-dev@i...>
  • Date: Thu, 16 Dec 1999 15:58:44 -0500

xpath and dom
<david>On one hand, I want an interoperable getElementByXPathExpr, but I
understand
the political and technical reasons why the DOM group isn't rushing to
implement it.</david>

It should be a simple enough matter to write such a function one self and
just call it! may be a week project for a student!(Hint!)

Frank

----- Original Message -----
From: David Orchard <orchard@p...>
To: xml-dev <xml-dev@i...>
Sent: Thursday, December 16, 1999 2:50 PM
Subject: RE: Xpath and DOM


> Leigh, I completely agree with you.  I have been in some discussions about
> this already so I'll try to relay what I've heard.
>
> About 6 weeks ago, I asked Lauren Wood about DOM implementing XPath.  My
> version of her answer is "Nobody asked for it for Level 2 or Level 3, and
> Level 2 is too late now.  Nobody volunteered to write it for the DOM
Spec".
> There's no technical reason why getElementByXPathExpr couldn't be added.
>
> I asked some of the other IBM XML standards reps about this and my version
> of their answer is "XPath is a query language, and we've got a better
query
> language coming.  Why support an inferior query language now when we'll
have
> to support the better one soon.  Additionally, why should the DOM be the
> bucket for all API gorp?  Query should be built on top of the DOM so we
can
> have layered parsers".
>
> On one hand, I want an interoperable getElementByXPathExpr, but I
understand
> the political and technical reasons why the DOM group isn't rushing to
> implement it.
>
> Cheers,
> Dave Orchard
> IBM Architect
> XLink co-editor
>
> > -----Original Message-----
> > From: owner-xml-dev@i... [mailto:owner-xml-dev@i...]On Behalf Of
> > Leigh Dodds
> > Sent: Tuesday, December 14, 1999 5:32 AM
> > To: xml-dev
> > Subject: Xpath and DOM
> >
> >
> > At present the DOM spec only allows one to traverse the
> > tree 'manually' using getChild, etc. Or jump into the
> > tree at some point using getElementsByTagName.
> >
> > Theres nothing in there to allow me to do getElementsByExpression
> > (accepting an XPath search expression), or similarly pull out
> > sections of the DOM tree using XPath expressions.
> >
> > I've written basic utilities to do this, as have others I'm sure
> > (XSLT engines must use something similar), but I'm curious as to when,
or
> > even whether, this type of feature is going to be added to the
> > DOM API itself.
> >
> > It would seem to be pretty useful. In the applications I've built
> > so far, I've not wanted to traverse or walk the tree, just pick
> > out bits of it (and sure I could use SAX but I want the tree
> > in memory because I'm manipulating it multiple times).
> >
> > Unless I'm asking the wrong question - is there a tool that will
> > search a DOM tree for me, assuming I supply it with an XPath
> > expression.
> >
> > Cheers,
> >
> > L.
> >
> > ==================================================================
> >     "Never Do With More, What Can Be Achieved With Less"
> > ---William of Occam
> > ==================================================================
> > Leigh Dodds                             Eml:  ldodds@i...
> > ingenta ltd                             Tel:  +44 1225 826619
> > BUCS Building, University of Bath       Fax:  +44 1225 826283
> >
> > eclectic http://weblogs.userland.com/eclectic
> > homepage http://www.bath.ac.uk/~ccslrd
> > ==================================================================
> >
> >
> > xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
> > Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on
> > CD-ROM/ISBN 981-02-3594-1
> > To unsubscribe, mailto:majordomo@i... the following message;
> > unsubscribe xml-dev
> > To subscribe to the digests, mailto:majordomo@i... the
> > following message;
> > subscribe xml-dev-digest
> > List coordinator, Henry Rzepa (mailto:rzepa@i...)
> >
> >
>
>
> xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
> Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on
CD-ROM/ISBN 981-02-3594-1
> To unsubscribe, mailto:majordomo@i... the following message;
> unsubscribe xml-dev
> To subscribe to the digests, mailto:majordomo@i... the following
message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa@i...)
>


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.