Solved

how to evaluate regex in xpath evaluator in eclipse helios

Posted on 2011-03-23
8
852 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
  • 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
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 covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to dynamically set the form action using jQuery.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now