xpath query too long?

This is a discussion on xpath query too long? within the PHP Language forums, part of the PHP Programming Forums category; I'm trying to run the following xpath query: /html/body/table[2]/tbody/tr[1]/td[2]/table[3]/...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-25-2008
mapper
 
Posts: n/a
Default 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?
Reply With Quote
  #2 (permalink)  
Old 06-25-2008
mapper
 
Posts: n/a
Default Re: xpath query too long?

On Jun 25, 2:43*am, mapper <caioigles...@gmail.com> wrote:
> 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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:28 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0