Simon Willison’s Weblog

Subscribe
Atom feed for xpath

4 items tagged “xpath”

2008

"Why doesn't jQuery have an XPath CSS Selector implementation?" For now, my answer is: I don't want two selector implementations - it makes the code base significantly harder to maintain, increases the number of possible cross-browser bugs, and drastically increases the filesize of the resulting download.

John Resig

# 11th February 2008, 5:31 am / css, john-resig, jquery, performance, xpath

2007

lxml.cssselect (via) lxml includes an implementation of CSS 3 selectors, which compiles them to XPath expressions. Should be a useful tool for parsing Microformats from Python.

# 24th September 2007, 11:57 pm / css, css3, libxml2, lxml, microformats, python, selectors, xpath

2005

Mozilla XPath Documentation. This is extremely useful for writing Greasemonkey user scripts.

# 14th April 2005, 12:57 pm / greasemonkey, mozilla, xpath

2003

Using XPath to mine XHTML

This morning, I finally decided to install libxml2 and see what all the fuss was about, in particular with respect to XPath. What followed is best described as an enlightening experience.

[... 576 words]