Re: Help Needed with Element Tree

Dan Gunter <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
Vishal Bhargava wrote:

>Hello All:
>I have an XML format that I have created using data collected from 
>Different dictionaries. I am changing the file extension of this XML file
>to something else, e.g. .wml extension, so when I open this file using
>notepad the whole file is totally flat, that means the all the data that I
>have in the XML file whose extension I just changed gets printed out into 1
>single line. Is there no way that we can take care of formatting the file,
>during the building of the XML file using the Element Tree Module. Thanks
>for all the help.
>Cheers,
>Vishal
>
>
>  
>
last I heard elementtree didn't have a pretty print, but it is not hard 
to hack in yourself; or just run something like HTML Tidy over the file 
post-hoc. Not terribly efficient, but if you're opening it in notepad, 
it couldn't be that big..

-Dan
_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.