diff options
author | Skip Montanaro <skip@pobox.com> | 2004-09-28 18:40:42 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2004-09-28 18:40:42 (GMT) |
commit | 5497feefacb19549032241bc13a29294bd772990 (patch) | |
tree | 77fce8e20a95c9e477c4146c05aaa264a5a347fc | |
parent | 67db9a5b7250e74b000cea5704ec4c3b47070cda (diff) | |
download | cpython-5497feefacb19549032241bc13a29294bd772990.zip cpython-5497feefacb19549032241bc13a29294bd772990.tar.gz cpython-5497feefacb19549032241bc13a29294bd772990.tar.bz2 |
minor doc tweaks for writexml
-rw-r--r-- | Doc/lib/xmldomminidom.tex | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Doc/lib/xmldomminidom.tex b/Doc/lib/xmldomminidom.tex index da0e1f0..2b54a14 100644 --- a/Doc/lib/xmldomminidom.tex +++ b/Doc/lib/xmldomminidom.tex @@ -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} |