get attribute value of xml element c#
string name;
XmlDocument xml = new XmlDocument();
xml.Load("theFile.xml");
// 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;
if(elt!=null)
{
name=elt.GetAttribute("name");
}
Also in C#:
- get random value from list c#
- unity rotate vector
- how to disable a gameObject unity c#
- how to update a project to cross target .net core
- unity c# foreach
- unity how to change the text on a button
- unity persistent data
- what is c# used for
- uinput dialog uwp c#
- how to close a form c#
- c# tab character
- unity pro version free download
- ecs get specific entities with component
- c# string to character array
- unity array c#
- how to find the area of a circle
- how to make an object move in unity
- c# declare an int list
- random from list c#
- check which activity in focus in android
- asp.net textarea disable resize
- unity oncollisionenter2d
- unity accessing 2d pointlight from c# script
- using mediamanager how to play mp3 files