Created
September 27, 2011 19:34
-
-
Save clausjoergensen/1245994 to your computer and use it in GitHub Desktop.
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
var document = XDocument.Load(File.OpenRead(@"myfile.xml")); | |
var entities = document.Element("ImportExportXml").Element("Entities").Elements("Entity"); | |
var result = | |
entities.Elements("Entity") | |
.SelectMany( | |
e => e.Element("EntityInfo").Element("attributes").Elements("attribute")) | |
.Distinct(); | |
result.Dump(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment