xpath query too long?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mapper

    xpath query too long?

    I'm trying to run the following xpath query:

    /html/body/table[2]/tbody/tr[1]/td[2]/table[3]/tbody/tr/td/div/
    table[1]/tbody/tr[position()>4]

    ....nothing happens.

    I'm using xpather firefox extension to simulate it, but PHP fails to
    run it.

    Is there an expression size limit?
  • mapper

    #2
    Re: xpath query too long?

    On Jun 25, 2:43 am, mapper <caioigles...@g mail.comwrote:
    I'm trying to run the following xpath query:
    >
    /html/body/table[2]/tbody/tr[1]/td[2]/table[3]/tbody/tr/td/div/
    table[1]/tbody/tr[position()>4]
    >
    ...nothing happens.
    >
    I'm using xpather firefox extension to simulate it, but PHP fails to
    run it.
    >
    Is there an expression size limit?
    it turned out I had to skip two "tbody"s, now it works like this:

    /html/body/table[2]/tr[1]/td[2]/table[3]/tbody/tr/td/div//table[1]//
    tr[position()>4]

    thanks anyways

    Comment

    Working...