LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2008, 04:47 PM   #1
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
java xpath evaluate on a node


Hi,
Is it possible to run an xpath evaluation on an object of type Node/Element, rather than say a Document object (as most of the online references seem to provide examples for)?

For example, instead of :
Code:
Object result = expr.evaluate(doc, XPathConstants.NODESET);
I was looking to do a :
Code:
Object result = expr.evaluate(node, XPathConstants.NODESET);
Oh yeah, java 1.5 ... and without using say, dom4j/xom/...

Thanks.

Last edited by h/w; 02-28-2008 at 04:49 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Faster XML reads and writes with XPath LXer Syndicated Linux News 0 04-07-2007 08:46 PM
JavaScript:: alert(node) shows null, but node != null taylor_venable Programming 1 05-01-2006 10:51 PM
Help with XPath please trevelluk Programming 1 11-12-2004 08:45 AM
How to implemtn XPATH irfanhab Programming 1 08-27-2004 11:57 AM
php xpath ??? howto??? amirspl Programming 0 09-20-2003 07:21 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration