Remove whitespaces and line breaks in a XML file

Sven nomail at
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 
> 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 which would 
do the same, would it not?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list