Pretty printing with ElementTree
abhijeet thatte
abhijeet.thatte at gmail.com
Fri Jul 9 19:14:14 EDT 2010
It worked.
Thanks,
Abhijeet
On Fri, Jul 9, 2010 at 4:03 PM, John Krukoff <jkrukoff at ltgc.com> wrote:
> On Fri, 2010-07-09 at 15:46 -0700, abhijeet thatte wrote:
> > Hi,
> >
> >
> > Does any one know how to use pretty printing with ElementTree while
> > generating xml files.
> > We can use that with lxml. But I want to stick with it ElementTree.
> >
> >
> > Thanks,
> > Abhijeet
>
>
> It's pretty simple minded, but this recipe from the element tree
> documentation may do what you want:
> http://effbot.org/zone/element-lib.htm#prettyprint
>
> --
> John Krukoff <jkrukoff at ltgc.com>
> Land Title Guarantee Company
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100709/a35534bb/attachment.html>
More information about the Python-list
mailing list