commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Snehal Khanna <>
Subject JXPath Built-in functions
Date Wed, 04 Feb 2004 02:45:08 GMT
I am new to JXPath and am evaluating different xpath
expressions to get a feel of JXPath. am having trouble
with some built in functions.

This is the xpath expression to be evaluated against a
SOAP request:
/*[local-name()="Envelope" and

My code looks like this:

//get a DOM object
Document doc =
JXPathContext context = JXPathContext.newContext(doc);
Iterator itr = context.iteratePointers(xpath); //where
xpath is the above expression
  Pointer ptr = (Pointer);
  System.out.println("Value: " + ptr.getValue());

My problem is that itr.hasNext() returns false.

Appreciate any help on figuring this out.


Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message