public string Load(string textFromTextbox) { string list = ""; try { XmlDocument doc = new XmlDocument(); doc.LoadXml(textFromTextbox); //Get all elements in file and put them in NodeList NodeList = doc.GetElementsByTagName( "*" ); for (int i = 0; i < NodeList.Count; i++) { list += (NodeList[i].Name + "\t"; + NodeList[i].InnerText + "\n\n";); } } catch ( IOException Ex ) { MessageBox.Show( Ex.Message ); } return list; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)