Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
13b3acd1
Commit
13b3acd1
authored
Mar 30, 2016
by
Berker Peksag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in xml.dom.pulldom.rst
Reported by Matthew Cole on docs@p.o.
parent
53f8ba52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Doc/library/xml.dom.pulldom.rst
Doc/library/xml.dom.pulldom.rst
+3
-1
No files found.
Doc/library/xml.dom.pulldom.rst
View file @
13b3acd1
...
...
@@ -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.ex
p
andNode(node)
# Following statement prints node with all its children '
<p>
Some text
<div>
and more
</div></p>
'
print(node.toxml())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment