// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Xml; namespace E { public class Program { public static void Main(string[] args) { string xmlstr = @" 451 279 457 778 "; XmlDocument settings = new XmlDocument(); settings.LoadXml(xmlstr); int x = int.Parse(settings.SelectSingleNode("//myApp/app_settings/startposition_x/text()").Value); int y = int.Parse(settings.SelectSingleNode("//myApp/app_settings/startposition_y/text()").Value); Console.WriteLine(x + " " + y); } } }