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

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to