Last active
November 24, 2016 13:48
-
-
Save bertwagner/15441786b3b66d5954c8e06530e48966 to your computer and use it in GitHub Desktop.
Parsing XML data using XmlDocument
This file contains 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
public static void XmlDocumentTest(string filePath) | |
{ | |
List<string> singleRepRowIds = new List<string>(); | |
XmlDocument doc = new XmlDocument(); | |
doc.Load(filePath); | |
singleRepRowIds = doc.GetElementsByTagName("row").Cast<XmlNode>().Where(x => x.Attributes["Reputation"].InnerText == "1").Select(x => x.Attributes["Id"].InnerText).ToList(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment