Browse Source

Clarify the documentation of XMLParser.close

The return value of close() is not always a toplevel element. It depends on
what the underlying target returns. By default, TreeBuilder returns the
toplevel document element.
pull/224/head
Eli Bendersky 13 years ago
parent
commit
bfd78370a5
  1. 4
      Doc/library/xml.etree.elementtree.rst

4
Doc/library/xml.etree.elementtree.rst

@ -982,7 +982,9 @@ XMLParser Objects
.. method:: close()
Finishes feeding data to the parser. Returns an element structure.
Finishes feeding data to the parser. Returns the result of calling the
`close` method of the *target* passed during construction; by default,
this is the toplevel document element.
.. method:: doctype(name, pubid, system)

Loading…
Cancel
Save