Solved

how to evaluate regex in xpath evaluator in eclipse helios

Posted on 2011-03-23
8
862 Views
Last Modified: 2013-12-15
Hi,

I'm using the xpath expression evaluator in eclipse, the helios EE package.  
What I need to do is to cfreate various xpath expressions and verify they work against a given xml file. The evaluator has been working fine for simple expressions, but now I am trying to use the matches() function to do pattern matching. I get a function not found error.

I tried prefixing with fn:    so i get fn:matches(node,'pattern')   ... which fixes the function not found error , but does nothing as far as I can tell.

I *THINK* this is an XPATH 2.0 processor, but am wondering whether that is true.

Any clues to find a solution to pattern matching using eclipse?
A different software application (Oxygen? Altova?)

How can I determine for sure what XPATH version the evaluator is supporting ?
(is there some version() type of expression?)

thx
0
Comment
Question by:scooternh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
8 Comments
 
LVL 8

Expert Comment

by:zlatev
ID: 35375649
0
 
LVL 8

Expert Comment

by:zlatev
ID: 35378202
OK, you could have requested some more assistance... Grade C is not nice, but anyway...

Xpath version of the processor can be determined by looking on the plugins in eclipse.
As it seemed that the xpath processor that comes bundled with eclipse is not doing the job for you, I have given you link to some suggested alternatives.
0
 
LVL 8

Expert Comment

by:zlatev
ID: 35381396
@scooternh - In case you did not understand my comment about "looking on the plugins in eclipse", from eclipse menu go to Help > About > Installation Details > Plug-ins (page) and you will see something like the attached screenshot This is how you can determine the XPath eclipse plugin version
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:scooternh
ID: 35383561
@WallyMod -

Per my original comment, the answer was not complete, but the link was still useful, even though I had already found that link long before the answer came up.

From my POV, the original answer bordered on trivial, but it *was* an answer and would have been useful if I had not already done my own research in finding the link. The question was up for a long time, so I awarded points and closed it to be done with it.

EE being a paid service with advice from experts, I tend to expect answers to be fairly complete, and perhaps to contain personal knowledge, certainly more than a link that I can turn up myself with a web search.  Before I post on EE I generally have done a pretty thorough search of my own. Why post here and wait hours or days for a solution if I can find it myself?

After reviewing the 'how to grade' link you posted,  I think a 'B' grade would be appropriate.


@Zlatev:
thanks for the followup screen shot. I'd already looked at this, but it would be helpful if I had not done so.

@WallyMod & Zlatev:
Thanks for the lesson in how to use EE, and what the grades mean.
I will adjust my expectations and use of the service accordingly      :)

0
 
LVL 8

Accepted Solution

by:
zlatev earned 250 total points
ID: 35384463
@scooternh, be aware that it is also possible to close a question you have asked and answered, with selecting your own comment as an answer.
This way the points you have used for the question will be "refunded" to you.
I am sorry that I did not help in timely manner (e.g. you have solved the issue one way or another yourself).
0
 

Author Closing Comment

by:scooternh
ID: 35411126
Answer was partial.
See answer thread for more detail if required.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question