I know this is a very simple question-reading and parsing an xml file and has tons of solutions here already.Could you kindly assist me before shutting down this question?I'm new to C# and Xamarin as well,and have tried tons of solutions already but the result is always the same- nothing gets printed out to the console.Regardless of my implementation.The values are always null.Could you kindly check my code out,i have no idea why i'm not getting any data.
public List<SamplePoint> ReadFromFile()
{
pointList = new List<SamplePoint> ();
xmldoc = new XmlDocument ();
xmldoc.Load (fileLocation); //this is read from the sdcard of the device
XmlNodeList nodeList = xmldoc.DocumentElement.SelectNodes ("/SamplePoints/SamplePoint");
foreach(XmlNode node in nodeList){
endDate = node.SelectSingleNode ("EndDate").InnerText;
startDate = node.SelectSingleNode ("startDate").InnerText;
return pointsList;
}