XPath Question

A

andy

I am using XPath for the Electric XML Parser and having trouble getting
simple XPath queries to work. The following query works:

document.getElement(new
XPath("/PreliminaryEscrowAccountAnalysis[@testAttr='123']"));

where I am retrieving all nodes with the following attribute. But when
I try to run the following query:

document.getElement(new
XPath("/PreliminaryEscrowAccountAnalysis[LoanNum='222222222']"));

I get the following error:

java.lang.NumberFormatException: For input string:
"LoanNum='222222222'"

Anybody have any ideas?
 
M

Martin Honnen

andy said:
I am using XPath for the Electric XML Parser and having trouble getting
simple XPath queries to work.
I get the following error:

java.lang.NumberFormatException: For input string:
"LoanNum='222222222'"

Maybe there is a dedicated mailing list for that Java
software/parser/XPath API you use where you could find help on that.
The XPath expression looks syntactically correct.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,850
Latest member
VMRKlaus8

Latest Threads

Top