I have some XML, here's a snippet:
<STATUS _Condition="FAILURE" />
That XML is loaded as a System.Xml.XmlDocument
I just want to pull out the value of _Condition. I've searched MSDN and Google and find related topics, but nothing specific to what I need.
Finding the solution on how to pull "FAILURE" out of <STATUS>FAILURE</STATUS> is easy to find. Finding the solution to grabbing the value of an attribute, as in <STATUS _Condition="FAILURE" />, is a little more involved. Perhaps I'm too frustrated, annoyed, and sleep deprived to see what's right in front of my face, but if anyone could please help that would be great.
<STATUS _Condition="FAILURE" />
That XML is loaded as a System.Xml.XmlDocument
I just want to pull out the value of _Condition. I've searched MSDN and Google and find related topics, but nothing specific to what I need.
Finding the solution on how to pull "FAILURE" out of <STATUS>FAILURE</STATUS> is easy to find. Finding the solution to grabbing the value of an attribute, as in <STATUS _Condition="FAILURE" />, is a little more involved. Perhaps I'm too frustrated, annoyed, and sleep deprived to see what's right in front of my face, but if anyone could please help that would be great.