Write easily readable XML in Python

Posted by dutch on Stack Overflow See other posts from Stack Overflow or by dutch
Published on 2010-04-22T07:57:06Z Indexed on 2010/04/22 8:03 UTC
Read the original article Hit count: 213

Filed under:
|

Is there any way other than creating a method myself to write XML using python which are easily readable? xMLFile.write(xmlDom.toxml()) does create proper xml but reading them is pretty difficult. I tried toprettyxml but doesn't seem like it does much. e.g. following is what I would consider a human readable xml:

© Stack Overflow or respective owner

Related posts about python

Related posts about Xml