Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to evaluate regex in xpath evaluator in eclipse helios

Posted on 2011-03-23
8
Medium Priority
?
874 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
Use Filtering Commands to Process Files in Linux

Learn how to manipulate data with the help of various filtering commands such as `cat`, `fmt`, `pr`, and others in Linux.

 

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 750 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

722 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