Posts

Showing posts from 2017

Parsing xml in c#

Let's assume we have XML structure like following : <current> <city   id =" 587084 "   name =" Baku " > <coord   lon =" 49.89 "   lat =" 40.38 " /> <country> AZ </country> <sun   rise =" 2017-11-24T03:37:06 "   set =" 2017-11-24T13:17:07 " /> </city> <temperature   value =" 282.15 "   min =" 282.15 "   max =" 282.15 "   unit =" kelvin " /> <humidity   value =" 81 "   unit =" % " /> <pressure   value =" 1018 "   unit =" hPa " /> <wind> <speed   value =" 7.7 "   name =" Moderate breeze " /> <gusts/> <direction   value =" 320 "   code =" NW "   name =" Northwest " /> </wind> <clouds   value =" 90 "   name =" overcast clouds " /> <visibi...