I need to copy the node from yahoo weather to my local xml file. I got the node with all its attributes with
XmlNode node = xdoc.SelectSingleNode("/rss/channel/item/yweather:condition", ns); What I don't know is how to write the same node in my local data.xml file? So each time I start the application, I want to write the node in my local xml. Because the node in yahoo is updated like in an hour, I want also to check if the values from the last node in my local xml is the same in the yahoo weather, in that case do not write it down. My xml will be like:
<condition text="Cloudy" temp="4" date="Thu, 06 Feb 2014 4:00 pm CET" /> <condition text="Cloudy" temp="3" date="Thu, 06 Feb 2014 6:00 pm CET" /> etc. I don't want to have duplicates. How can I do it?