From: John Krukoff on 9 Jul 2010 19:03 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(a)ltgc.com> Land Title Guarantee Company
|
Pages: 1 Prev: Cpp + Python: static data dynamic initialization in *nix sharedlib? Next: Excuse me!! |