Last active
September 2, 2016 20:08
-
-
Save matthewjberger/63fd5e79b09da5c0bd002cdab00de438 to your computer and use it in GitHub Desktop.
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
// Create an XML Document from a string | |
XmlDocument doc = new XmlDocument(); | |
doc.LoadXml(reply); | |
// Get a node from the XML as an XML object | |
XmlNode root = doc.SelectSingleNode("//TimeLeft"); | |
// Access specific attributes from the dictionary of attributes on the node | |
XmlAttribute timeLeft = root?.Attributes["value"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment