XPath tips from the web scraping trenches
blog.scrapinghub.com
XPath tips from the web scraping trenches
1–6 of 6 posts
Re: XPath tips from the web scraping trenches
#2Re: XPath tips from the web scraping trenches
#3Re: XPath tips from the web scraping trenches
#4There are some things in XPath that I really like. For example `x = ( a, b, c )' means: `(x == a or x == b or x == c)' which is quite handy sometimes. Also `(a,default)[1]' makes it easy to provide a default if a is null.
Re: XPath tips from the web scraping trenches
#5There are some things in XPath that I really like. For example `x = ( a, b, c )' means: `(x == a or x == b or x == c)' which is quite handy sometimes. Also `(a,default)[1]' makes it easy to provide a default if a is null.
Thanks, that is novelty to me! I don't seem to get an example working, though. Is that XPath 2.0?
data:
xsl:
gives: false2Re: XPath tips from the web scraping trenches
#6Earlier quoted context omitted.
Thanks, that is novelty to me! I don't seem to get an example working, though. Is that XPath 2.0?
Yes, this is XPath 2.0. I don't bother with 1.0 if I can, because it is soooo far behind 2.0. data: xsl: gives: false 2