vargaspizzazz
New Member
I have a question:\[code\]<Reports> <Databases> <Database>Axxest</Database> <Database>Axxest2</Database> </Databases></Reports>\[/code\]how to read \[code\]Axxest,Axxest2\[/code\] use c# to read xml file like this? I try this:\[code\] XmlDocument xld = new XmlDocument(); xld.Load(XmlPath); XmlNodeList xnl = xld.SelectSingleNode("Reports").ChildNodes; tableList.Clear(); foreach (XmlNode xn in xnl) { tableList.Add(xn.InnerText); } but something wrong?\[/code\]