Solved

how to evaluate regex in xpath evaluator in eclipse helios

Posted on 2011-03-23
8
859 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can I assign SimpleXMLElements to variables? 5 61
React or Angular? 6 71
XML XSLT If loop 4 25
XSLT Display Label Name 1 22
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to count occurrences of each item in an array.

813 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

10 Experts available now in Live!

Get 1:1 Help Now