XPath Question

Discussion in 'XML' started by andy, Nov 10, 2005.

  1. andy

    andy Guest

    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?
     
    andy, Nov 10, 2005
    #1
    1. Advertising

  2. andy wrote:

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

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Nov 10, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marvin_123456

    "Memory leak" in javax.xml.xpath.XPath

    Marvin_123456, Jul 29, 2005, in forum: Java
    Replies:
    4
    Views:
    2,028
    jan V
    Jul 29, 2005
  2. Alastair Cameron
    Replies:
    1
    Views:
    7,524
    SQL Server Development Team [MSFT]
    Jul 8, 2003
  3. Anna
    Replies:
    0
    Views:
    572
  4. goog
    Replies:
    0
    Views:
    536
  5. Tjerk Wolterink

    XPath: efficiency in xpath expressions

    Tjerk Wolterink, Nov 13, 2004, in forum: XML
    Replies:
    1
    Views:
    1,704
    Richard Tobin
    Nov 13, 2004
Loading...

Share This Page