summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-03-30 13:28:43 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-03-30 13:28:43 (GMT)
commit13b3acd13e35b5e619c3d1aab90aaf54abc1fb53 (patch)
tree6e04d0464ca1b15e28724293b18aa3a34cff160c /Doc
parent53f8ba52e6f64a7e352077a9a71507f4c042f7b2 (diff)
downloadcpython-13b3acd13e35b5e619c3d1aab90aaf54abc1fb53.zip
cpython-13b3acd13e35b5e619c3d1aab90aaf54abc1fb53.tar.gz
cpython-13b3acd13e35b5e619c3d1aab90aaf54abc1fb53.tar.bz2
Fix typo in xml.dom.pulldom.rst
Reported by Matthew Cole on docs@p.o.
Diffstat (limited to 'Doc')
-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())