1. You could read all the data with like xmlreader.
I don't have experience with that. but maybe this link will help you
XmlReader example[
^]
2. you could use Object serialize and deserialize
first object would look like
public class response
{
public int status { get; set; }
public int activated { get; set; }
public response() { }
}
and then you could do
XmlSerializer mySerializer = new XmlSerializer(typeof(response));
using (FileStream stream = new FileStream(filepath, FileMode.Open))
{
return (response)mySerializer.Deserialize(stream);
}
3. Linq to sql
Example using linq to sql[
^]
4. XmlDocument
ReadingXml Using XmlDocument[
^]
probably there are even more options