summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-03-30 13:29:01 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-03-30 13:29:01 (GMT)
commitfe4c01268cf9e94869a476495213fc362ef3a697 (patch)
tree5b78cba00181fecaf3608aa99c70879dfbdd21d2 /Doc/library
parent8a34d416ba9e107e07fca7d4a1692b4b6a54a3ef (diff)
parent13b3acd13e35b5e619c3d1aab90aaf54abc1fb53 (diff)
downloadcpython-fe4c01268cf9e94869a476495213fc362ef3a697.zip
cpython-fe4c01268cf9e94869a476495213fc362ef3a697.tar.gz
cpython-fe4c01268cf9e94869a476495213fc362ef3a697.tar.bz2
Fix typo in xml.dom.pulldom.rst
Reported by Matthew Cole on docs@p.o.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/xml.dom.pulldom.rst4
1 files changed, 3 insertions, 1 deletions
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 = '<html><title>Foo</title> <p>Some text <div>and more</div></p> </html>'
doc = pulldom.parseString(xml)
for event, node in doc:
if event == pulldom.START_ELEMENT and node.tagName == 'p':
# Following statement only prints '<p/>'
print(node.toxml())
- doc.exandNode(node)
+ doc.expandNode(node)
# Following statement prints node with all its children '<p>Some text <div>and more</div></p>'
print(node.toxml())