diff --git a/Doc/library/xml.dom.pulldom.rst b/Doc/library/xml.dom.pulldom.rst index a3b8bc166a0..98329a2239d 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())