Solved

how to evaluate regex in xpath evaluator in eclipse helios

Posted on 2011-03-23
8
870 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:Zlatin Zlatev
ID: 35375649
0
 
LVL 8

Expert Comment

by:Zlatin 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:Zlatin 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
RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

 

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:
Zlatin 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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
Suggested Courses

617 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