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
5497feef
Commit
5497feef
authored
Sep 28, 2004
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor doc tweaks for writexml
parent
67db9a5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Doc/lib/xmldomminidom.tex
Doc/lib/xmldomminidom.tex
+9
-5
No files found.
Doc/lib/xmldomminidom.tex
View file @
5497feef
...
...
@@ -137,16 +137,20 @@ needed is good practice. This only needs to be called on the
children of that node.
\end{methoddesc}
\begin{methoddesc}
[Node]
{
writexml
}{
writer
}
\begin{methoddesc}
[Node]
{
writexml
}{
writer
\optional
{
,indent=""
\optional
{
,addindent=""
\optional
{
,newl=""
}}}
}
Write XML to the writer object. The writer should have a
\method
{
write()
}
method which matches that of the file object
interface.
interface. The
\var
{
indent
}
parameter is the indentation of the current
node. The
\var
{
addindent
}
parameter is the incremental indentation to use
for subnodes of the current one. The
\var
{
newl
}
parameter specifies the
string to use to terminate newlines.
\versionchanged
[To support pretty output, new keyword parameters
\var
{
indent
}
,
\var
{
addindent
}
, and
\var
{
newl
}
have been added]
{
2.1
}
\versionchanged
[The optional keyword parameters
\var
{
indent
}
,
\var
{
addindent
}
, and
\var
{
newl
}
were added to support pretty
output]
{
2.1
}
\versionchanged
[For the
\class
{
Document
}
node, an additional keyword
argument
encoding
can be used to specify the encoding field of the XML
argument
\var
{
encoding
}
can be used to specify the encoding field of the XML
header]
{
2.3
}
\end{methoddesc}
...
...
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