Remove whitespaces and line breaks in a XML file

Sven nomail at here.net
Fri Feb 11 07:40:14 EST 2011


On 2011-02-07 18:46:17 -0500, Josh English said:

> I found the code posted at 
> 
> http://infix.se/2007/02/06/gentlemen-indent-your-xml
> 
> quite helpful in turning my xml into human-readable structures. It works
> best for XML-Data.

lxml, which the code is using, already has a pretty_print feature 
according to this http://codespeak.net/lxml/tutorial.html which would 
do the same, would it not?

-- 
./Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110211/aaa88486/attachment.html>


More information about the Python-list mailing list