commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Janoff <>
Subject [JXPath] Which type of object does "count()" return?
Date Tue, 06 Jan 2004 23:46:19 GMT
Hi there!

I'm using commons-jxpath-1.1. Everytime I try to execute


I get a java.lang.ClassCastException.

The XML looks like this:

  <?xml version="1.0" encoding="UTF-8"?>

The code looks like this:

  JXPathContext context = JXPathContext.newContext(doc);
  // doc is a JDOM tree
  System.out.print("JXTest: ");

(I also tried Integer instead of String.)

Which type of object does the getValue() method return after "count"
has been executed?

Thanks for any hints!

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

View raw message