Did you consider to use  
http://docs.python.org/library/xml.etree.elementtree.html ?

Dne čtvrtek, 23. srpna 2012 11:53:32 UTC+2 Amit napsal(a):
>
> Hi,
> I have web service method in my application which will receive xml file 
> from the request, i need to parse it and save the extracted data to the 
> database. Please suggest me the best way to parse xml in web2py.
>
> xml format would be like below:
>
> <?xml version='1.0' encoding='utf-8'?>
> <macaddress value="00:00:00:00:00:00" >
>   <devicetype value="abc">
>     <deviceserialno>123456</sensorserialno>
>     <mfgdate>2012-06-30</mngdate>
>     <mfgsiteid>1</mngsiteid>
>     <secretkey>adadafdfdgfgfhggjghjjj</secretkey>
>   </sensortype>
> </macaddress>
>

-- 



Reply via email to