using System;
using System.IO;
using System.Xml;
public class Sample
{
public static void Main(){
using (XmlReader reader = XmlReader.Create("dataFile.xml")) {
reader.ReadToFollowing("longValue");
long number = reader.ReadElementContentAsLong();
// Do some processing with the number object.
}
}
}