- Home /
xml look a node with a certain value.
Hey, Im reading out a xml file but now im trying to get a node with a certain value like this node:
<nodeID>1</nodeID>
i tried looking it up with a ChildNodes
but that doesnt give me what i need, any idea how i can get this value? (im trying to make a dialogue system with code like this: foreach (XmlNode option in scene["option"].ChildNodes) { foreach (XmlNode choice in scene["option"].ChildNodes) { options.Add(choice.InnerText); } }
Comment
Your answer
Follow this Question
Related Questions
How can I read an XML file in Android ? I can't access it 1 Answer
XmlException: Text node cannot appear in this state 2 Answers
Bake/embed XML into exe 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers