[Tutor] Creating xml documents
Stefan Behnel
stefan_ml at behnel.de
Wed Feb 16 09:35:53 CET 2011
allan oware, 16.02.2011 09:20:
> Alright,
> Am stuck with xml.dom.minidom
Interesting. Why would that be the case?
>, but is there correct usage for *Node.prettyxml()
> *resulting in less junky newlines and spaces ?
>
> i.e *from*
>
> <extent>
> <xmin>
> 28.4258363792
> </xmin>
> <ymin>
> -6.13557141177
> </ymin>
> <xmax>
> 46.1374243603
> </xmax>
> <ymax>
> 6.41013674147
> </ymax>
> </extent>
>
> *to*
> *
> *
> <extent>
> <xmin>28.477417</xmin>
> <ymin>-4.936117</ymin>
> <xmax>47.341236</xmax>
> <ymax>5.267412</ymax>
> </extent>
See my reply to your original question: use ElementTree.
Stefan
More information about the Tutor
mailing list