Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » How to specify namespace in xpath view
How to specify namespace in xpath view [message #480298] Fri, 14 August 2009 15:59 Go to next message
Eclipse UserFriend
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 18:22 Go to previous messageGo to next message
Eclipse UserFriend
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 18:04 Go to previous message
Eclipse UserFriend
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 18:06] by 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: Tue Jul 22 18:45:40 EDT 2025

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

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

Back to the top