diff --git a/dip3.css b/dip3.css index 16cd119..e897bc6 100644 --- a/dip3.css +++ b/dip3.css @@ -92,7 +92,7 @@ pre a,.w a{padding:0.4375em 0} .w a{text-decoration:underline} kbd,mark{font-weight:bold} mark{display:inline-block;width:100%;background:#ff8} -.p{color:#667} +pre span,.p{color:#667} /* overrides */ li ol,.q{margin:0} diff --git a/xml.html b/xml.html index 09d02eb..b54d291 100644 --- a/xml.html +++ b/xml.html @@ -337,8 +337,7 @@ mark{display:inline} []
  1. The findall() method finds child elements that match a specific query. (More on the query format in a minute.) -
  2. Each element — including the root element, but also child elements — has a findall() method. It finds all matching elements among the element’s children. -
  3. What happened here? Although it may not be obvious, this particular findall() query only searches the element’s children. Since the root feed element has no child named feed, this query returns an empty list. +
  4. Each element — including the root element, but also child elements — has a findall() method. It finds all matching elements among the element’s children. But why aren’t there any results? Although it may not be obvious, this particular query only searches the element’s children. Since the root feed element has no child named feed, this query returns an empty list.
  5. This result may also surprise you. There is an author element in this document; in fact, there are three (one in each entry). But those author elements are not direct children of the root element; they are “grandchildren” (literally, a child element of a child element). If you want to look for author elements at any nesting level, you can do that, but the query format is slightly different.