I\'m trying to import the kml xml Google earth file into an application, but i can\'t seem to get the xDocument syntax right in order to do what i want, i\'m wondering if anyone
var xDoc = XDocument.Load("a.xml"); XNamespace ns = "http://earth.google.com/kml/2.2"; var placemarks = xDoc.Descendants(ns+"Placemark") .Select(p => new { Name = p.Element(ns+"name").Value, Desc = p.Element(ns+"description").Value }) .ToList();