mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
fixed copy-and-paste error in feed.xml
This commit is contained in:
+3
-3
@@ -20,9 +20,9 @@
|
||||
<category scheme="http://diveintomark.org" term="docbook"/>
|
||||
<category scheme="http://diveintomark.org" term="html"/>
|
||||
<summary type="html">Putting an entire chapter on one page sounds
|
||||
bloated, but consider this &mdash; my longest chapter so far
|
||||
would be 75 printed pages, and it loads in under 5 seconds&hellip;
|
||||
On dialup.</summary>
|
||||
bloated, but consider this &mdash; my longest chapter so far
|
||||
would be 75 printed pages, and it loads in under 5 seconds&hellip;
|
||||
On dialup.</summary>
|
||||
</entry>
|
||||
<entry>
|
||||
<author>
|
||||
|
||||
@@ -242,12 +242,11 @@ mark{display:inline}
|
||||
<li>Finally, the end tag for the <code>entry</code> element, signaling the end of the metadata for this article.
|
||||
</ol>
|
||||
|
||||
<p>
|
||||
|
||||
<h2 id=xml-parse>Parsing XML</h2>
|
||||
|
||||
<p>FIXME
|
||||
<p>Python comes with an efficient XML parsing library called Etree.
|
||||
|
||||
<p class=d>[<a href=examples/feed.xml>download <code>feed.xml</code></a>]
|
||||
<pre class=screen>
|
||||
>>> import xml.etree.ElementTree as etree
|
||||
>>> tree = etree.parse("examples/feed.xml")
|
||||
|
||||
Reference in New Issue
Block a user