I want to populate a listbox with data from an xml file, but i only want to populate it with 2 ElementTagNames (id and name). each item will have 2 values an id and a name and then on selectedindex i will call another class to do some other tasks based on the id of the item. I want both of them because i want to display the name and use the ID to do some data manipulation.
Here is what i come up with up untill now. I can only get one single ElementTagName per item.
XmlTextReader reader = new XmlTextReader("xmlfile");
XmlDocument XMLdoc = new XmlDocument();
XmlElement RootNode = XMLdoc.DocumentElement;
XmlNodeList nodeList = RootNode.GetElementsByTagName("Name");
for (i = 0; i <= nodeList.Count - 1; i++)
XMLdoc = null;
View Complete Post