-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed as not planned
Closed as not planned
Copy link
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtopic-XMLtype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
The XML declaration is currently hardcoded in Document.writexml()
, which is in turn called by toxml()
and toprettyxml()
.
It is often convenient to use these functions to parse XML which purpose is to be inserted in another XML document, but one has to get rid of the declaration set by writexml()
.
It would be handy and trivial to add a default xml_declaration=True
parameter, which would skip the declaration when set to False.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Metadata
Metadata
Assignees
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtopic-XMLtype-featureA feature request or enhancementA feature request or enhancement