Created
November 9, 2010 17:05
-
-
Save mattkruskamp/669395 to your computer and use it in GitHub Desktop.
This is how to get the XLinq solution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get the xml from a url that I have created | |
XElement doc = XElement.Load(url); | |
// grab the namespace declaration | |
XNamespace na = doc.GetDefaultNamespace(); | |
// append it to all the queries | |
var elements = from e in doc.Elements(na + "GeoPlaceDistance") | |
select e.Element(na + "ToPlace"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment