Skip to content

bpo-18911: using xmlcharrefreplace when open a file #13352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Doc/library/xml.dom.minidom.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,12 @@ module documentation. This section lists the differences between the API and

.. method:: Node.writexml(writer, indent="", addindent="", newl="")

Write XML to the writer object. The writer should have a :meth:`write` method
which matches that of the file object interface. The *indent* parameter is the
indentation of the current node. The *addindent* parameter is the incremental
indentation to use for subnodes of the current one. The *newl* parameter
specifies the string to use to terminate newlines.
Write XML to the writer object. The writer receives texts but not bytes as input,
it should have a :meth:`write` method which matches that of the file object
interface. The *indent* parameter is the indentation of the current node.
The *addindent* parameter is the incremental indentation to use for subnodes
of the current one. The *newl* parameter specifies the string to use to
terminate newlines.

For the :class:`Document` node, an additional keyword argument *encoding* can
be used to specify the encoding field of the XML header.
Expand Down