[Tutor] Creating xml documents

allan oware lumtegis at gmail.com
Wed Feb 16 09:20:55 CET 2011


Alright,
Am stuck with xml.dom.minidom, 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>


Regards,
Allan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110216/500554e4/attachment.html>


More information about the Tutor mailing list