Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » XPath Builder?
XPath Builder? [message #230000] Fri, 03 April 2009 19:41 Go to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
I am looking around to see if anyone is aware of XPath builders out there.
We have a usecase where a user needs to fill in an XPath into a form
field. We'd like to have a dialog box that helps the user build such an
expression given a schema. I figure this has been implemented at least a
hundred times already. Is anyone aware of examples XPath builders
(especially ones that you like). I am interested in all examples (not just
ones that are open source or ones that can run in Eclipse).

- Konstantin
Re: XPath Builder? [message #230017 is a reply to message #230000] Fri, 03 April 2009 20:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Konstantin Komissarchik wrote:
> I am looking around to see if anyone is aware of XPath builders out
> there. We have a usecase where a user needs to fill in an XPath into a
> form field. We'd like to have a dialog box that helps the user build
> such an expression given a schema. I figure this has been implemented at
> least a hundred times already. Is anyone aware of examples XPath
> builders (especially ones that you like). I am interested in all
> examples (not just ones that are open source or ones that can run in
> Eclipse).

The org.eclipse.wst.xml.xpath.core plugin that just was added to 3.1,
has a calculateXpathToNode() static method you can use. Given a DOM
Node, it will give you the direct XPath to it.

Dave
Re: XPath Builder? [message #230024 is a reply to message #230000] Fri, 03 April 2009 20:17 Go to previous message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Konstantin Komissarchik wrote:
> I am looking around to see if anyone is aware of XPath builders out
> there. We have a usecase where a user needs to fill in an XPath into a
> form field. We'd like to have a dialog box that helps the user build
> such an expression given a schema. I figure this has been implemented at
> least a hundred times already. Is anyone aware of examples XPath
> builders (especially ones that you like). I am interested in all
> examples (not just ones that are open source or ones that can run in
> Eclipse).

BTW, you may also want to check out the XPath view, in the
org.eclipse.wst.xml.xpath.ui plugin as well.

Dave
Previous Topic:Setting Static port in Eclipse 3.4
Next Topic:Bug#137822
Goto Forum:
  


Current Time: Thu Apr 25 11:38:27 GMT 2024

Powered by FUDForum. Page generated in 0.02999 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top