From: Berker Peksag Date: Wed, 30 Mar 2016 13:28:43 +0000 (+0300) Subject: Fix typo in xml.dom.pulldom.rst X-Git-Tag: v3.6.0a1~295^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13b3acd13e35b5e619c3d1aab90aaf54abc1fb53;p=thirdparty%2FPython%2Fcpython.git Fix typo in xml.dom.pulldom.rst Reported by Matthew Cole on docs@p.o. --- diff --git a/Doc/library/xml.dom.pulldom.rst b/Doc/library/xml.dom.pulldom.rst index a3b8bc166a01..98329a2239d7 100644 --- a/Doc/library/xml.dom.pulldom.rst +++ b/Doc/library/xml.dom.pulldom.rst @@ -114,13 +114,15 @@ DOMEventStream Objects Expands all children of *node* into *node*. Example:: + from xml.dom import pulldom + xml = 'Foo

Some text

and more

' doc = pulldom.parseString(xml) for event, node in doc: if event == pulldom.START_ELEMENT and node.tagName == 'p': # Following statement only prints '

' print(node.toxml()) - doc.exandNode(node) + doc.expandNode(node) # Following statement prints node with all its children '

Some text

and more

' print(node.toxml())