This commit is contained in:
Mark Pilgrim
2009-05-21 19:06:01 -04:00
parent ab5e21f84a
commit 23291f8f0f
+1 -1
View File
@@ -324,7 +324,7 @@ mark{display:inline}
<pre class=screen>
<samp class=p>>>> </samp><kbd>import xml.etree.ElementTree as etree</kbd>
<samp class=p>>>> </samp><kbd>tree = etree.parse("examples/feed.xml")</kbd>
<a><samp class=p>>>> </samp><kbd>root = tree.getroot()</kbd>
<samp class=p>>>> </samp><kbd>root = tree.getroot()</kbd>
<a><samp class=p>>>> </samp><kbd>root.findall("{http://www.w3.org/2005/Atom}entry")</kbd> <span>&#x2460;</span></a>
<samp>[&lt;Element {http://www.w3.org/2005/Atom}entry at e2b4e0>,
&lt;Element {http://www.w3.org/2005/Atom}entry at e2b510>,