From ebd620cd2f5e6d50d447d41ff41d88e6242d28a7 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Thu, 16 Jul 2009 23:25:51 -0400 Subject: [PATCH] fixed FIXMEs --- xml.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml.html b/xml.html index dd3f0e4..1f038f1 100755 --- a/xml.html +++ b/xml.html @@ -261,7 +261,7 @@ mark{display:inline} <Element {http://www.w3.org/2005/Atom}feed at cd1eb0>
  1. The ElementTree library is part of the Python standard library, in xml.etree.ElementTree. -
  2. The primary entry point for the ElementTree library is the parse() function, which can take a filename or a file-like object [FIXME xref]. This function parses the entire document at once. If memory is tight, there are ways to parse an XML document incrementally instead. +
  3. The primary entry point for the ElementTree library is the parse() function, which can take a filename or a file-like object. This function parses the entire document at once. If memory is tight, there are ways to parse an XML document incrementally instead.
  4. The parse() function returns an object which represents the entire document. This is not the root element. To get a reference to the root element, call the getroot() method.
  5. As expected, the root element is the feed element in the http://www.w3.org/2005/Atom namespace. The string representation of this object reinforces an important point: an XML element is a combination of its namespace and its tag name (also called the local name). Every element in this document is in the Atom namespace, so the root element is represented as {http://www.w3.org/2005/Atom}feed.