Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53f8ba5 commit 13b3acdCopy full SHA for 13b3acd
1 file changed
Doc/library/xml.dom.pulldom.rst
@@ -114,13 +114,15 @@ DOMEventStream Objects
114
115
Expands all children of *node* into *node*. Example::
116
117
+ from xml.dom import pulldom
118
+
119
xml = '<html><title>Foo</title> <p>Some text <div>and more</div></p> </html>'
120
doc = pulldom.parseString(xml)
121
for event, node in doc:
122
if event == pulldom.START_ELEMENT and node.tagName == 'p':
123
# Following statement only prints '<p/>'
124
print(node.toxml())
- doc.exandNode(node)
125
+ doc.expandNode(node)
126
# Following statement prints node with all its children '<p>Some text <div>and more</div></p>'
127
128
0 commit comments