From 13b3acd13e35b5e619c3d1aab90aaf54abc1fb53 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Wed, 30 Mar 2016 16:28:43 +0300 Subject: Fix typo in xml.dom.pulldom.rst Reported by Matthew Cole on docs@p.o. --- Doc/library/xml.dom.pulldom.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/library/xml.dom.pulldom.rst b/Doc/library/xml.dom.pulldom.rst index a3b8bc1..98329a2 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()) -- cgit v0.12