From 24a8c8120664fea1ccb7c4505a373e23814c7dc2 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Fri, 11 Sep 2009 16:03:10 -0400 Subject: [PATCH] comment out broken example until I can figure out how the hell it ever worked in the first place --- xml.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xml.html b/xml.html index 2c554c8..30ab969 100755 --- a/xml.html +++ b/xml.html @@ -420,6 +420,7 @@ mark{display:inline}
  • The other three results are each entry-level alternate links. Each entry has a single link child element, and because of the double slash at the beginning of the query, this query finds all of them. +

    Overall, ElementTree’s findall() method is a very powerful feature, but the query language can be a bit surprising. It is officially described as “limited support for XPath expressions.” XPath is a W3C standard for querying XML documents. ElementTree’s query language is similar enough to XPath to do basic searching, but dissimilar enough that it may annoy you if you already know XPath. Now let’s look at a third-party XML library that extends the ElementTree API with full XPath support.