Check out example codes for "get attribute value of xml element c#". It will help you in understanding the concepts better.

Code Example 1

string name;
XmlDocument xml = new XmlDocument();
// Or any other method to load your xml data in the XmlDocument.
// For example if your xml data are in a string, use the LoadXml method.
XmlElement elt = xml.SelectSingleNode("//SubMenu[@id='STE']") as XmlElement;

Learn ReactJs, React Native from