Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Aug 3, 2013, 3:26 PM

Post #1 of 4 (24 views)
Permalink
[issue14465] xml.etree.ElementTree: add feature to prettify XML output

Eli Bendersky added the comment:

A patch exists in the duplicate #17372

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14465>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 5, 2013, 2:14 PM

Post #2 of 4 (17 views)
Permalink
[issue14465] xml.etree.ElementTree: add feature to prettify XML output [In reply to]

Alex Henderson added the comment:

Proposed patch copied over from duplicate issue 17372.

----------
keywords: +patch
nosy: +alex.henderson
Added file: http://bugs.python.org/file31168/issue14465.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14465>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 11, 2013, 9:30 AM

Post #3 of 4 (13 views)
Permalink
[issue14465] xml.etree.ElementTree: add feature to prettify XML output [In reply to]

Stefan Behnel added the comment:

Just to reiterate this point, lxml.etree supports a "pretty_print" flag in its tostring() function and ElementTree.write(). It would thus make sense to support the same thing in ET.

http://lxml.de/api.html#serialisation

For completeness, the current signature looks like this:

def tostring(element_or_tree, *, encoding=None, method="xml",
xml_declaration=None, pretty_print=False,
with_tail=True, standalone=None, doctype=None,
exclusive=False, with_comments=True,
inclusive_ns_prefixes=None):

(The last three options are for C14N serialisation.)

----------
nosy: +scoder
versions: +Python 3.4 -Python 3.3

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14465>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 11, 2013, 10:56 AM

Post #4 of 4 (13 views)
Permalink
[issue14465] xml.etree.ElementTree: add feature to prettify XML output [In reply to]

Changes by Eric Snow <ericsnowcurrently [at] gmail>:


----------
nosy: +eric.snow

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14465>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.