Click here to get back home

xpath query too long?

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
xpath query too long? mapper 06-25-2008
Get Chitika Premium
Posted by mapper on June 25, 2008, 1:43 am
Please log in for more thread options
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?

Posted by mapper on June 25, 2008, 1:59 am
Please log in for more thread options
> 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

Similar ThreadsPosted
xpath query "//b[1]//c" gives different results when b is nested in another tag September 14, 2008, 12:30 am
XPath help? April 5, 2008, 12:02 pm
The use of fn: functions in XSL - XPath June 23, 2005, 9:14 pm
xpath XML and PHP4 November 30, 2006, 6:28 pm
problem with xml and xpath in PHP July 3, 2008, 10:11 pm
PHP5 Xpath problem August 18, 2004, 11:08 am
php5: question about xpath January 25, 2005, 10:05 pm
pass variable to xpath? February 1, 2005, 5:23 pm
Xpath encoding problem February 11, 2008, 11:29 am
Struggling with simple DOM/XPath usage... February 4, 2005, 6:13 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap