Well done. There are some nice tools for parsing and writing XML in the standard Python library. Take a look at ElementTree <https://docs.python.org/2.7/library/xml.etree.elementtree.html>.
-tk On Thu, Nov 17, 2016 at 2:54 AM, Hiljo Lodewijk <[email protected]> wrote: > Thanks Tom and Dave. I've managed to modify the CSV extension so it > outputs an XML file. I've attached the file with this post. > > The format of the XML file is: > <current> > <lastupdate>2016-11-15 10:48:27</lastupdate> > <temperature>18.9</temperature> > <pressure>1001</pressure> > <humidity>87</humidity> > <dewpoint>11.4</dewpoint> > <windchill>18.9</windchill> > <wind> > <direction>288</direction> > <speed>0.4</speed> > </wind> > <gust> > <direction>125</direction> > <speed>0.6</speed> > </gust> > <rain> > <rainrate>0.26</rainrate> > <rain>0.00</rain> > </rain> > </current> > > > -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
