Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to specify namespace in xpath view
How to specify namespace in xpath view [message #480298] Fri, 14 August 2009 19:59 Go to next message
David M. Karr is currently offline David M. Karr
Messages: 354
Registered: July 2009
Senior Member
I'm using the "XPath View", supposedly provided by "XPath Core" and "XPath UI", version 1.0.0.v200904240436.

My XML file, like zillions of other people, uses namespaces. I was able to get the XPath View to work using the "*[local-name()='...']" hack, but that's really annoying. Is there any way to specify a list of prefix/namespace pairs so that I can enter a more reasonable looking XPath expression? I didn't find any useful configuration in the XPath View or in my Preferences.
Re: How to specify namespace in xpath view [message #480312 is a reply to message #480298] Fri, 14 August 2009 22:22 Go to previous messageGo to next message
David M. Karr is currently offline David M. Karr
Messages: 354
Registered: July 2009
Senior Member
Never mind, I realized that any prefix/namespace pairs defined in the XML doc are in effect in the XPath expression.
Re: How to specify namespace in xpath view [message #480406 is a reply to message #480312] Sun, 16 August 2009 22:04 Go to previous message
David Carver is currently offline David Carver
Messages: 174
Registered: July 2009
Senior Member
David M. Karr wrote on Fri, 14 August 2009 18:22
Never mind, I realized that any prefix/namespace pairs defined in the XML doc are in effect in the XPath expression.


That is correct. The XPath View will try and dynamically figure out the namespaces to use and their corresponding prefix. We plan on greatly enhancing the XPath view, to add XPath 2.0 support during the WTP 3.2 (xsl tools 1.1) development period. If you have any suggestions for enhancement to the view please open an enhancement request.

[Updated on: Sun, 16 August 2009 22:06]

Report message to a moderator

Previous Topic:How To Programmatically Open An External File With Specified Editor
Next Topic:Public API To Get The Web Browser Editor ID?
Goto Forum:
  


Current Time: Thu Oct 02 04:32:29 GMT 2014

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

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