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