各位大大,请注意我需要的读取并显示的是XML节点的名称与属性的名称!是名称~

<?xml version="1.0" encoding="windows-1252" ?>
- <xml>
- <SectionStandard>
<Standard name="GB" externalname="GB" externalorganization="Standardization Administration of China" externaldate="Varies" externalversion="1.0" />
- <Sections>
<Section name="GB-HSSC32X2.5" externalname="GB-HSSC32X2.5" />
<Section name="GB-HSSC38X3" externalname="GB-HSSC38X3" />
<Section name="GB-HSSC32X4" externalname="GB-HSSC32X4" />
<Section name="GB-HSSC32X3.5" externalname="GB-HSSC32X3.5" />
<Section name="GB-HSSC38X3.5" externalname="GB-HSSC38X3.5" />
</Sections>
</SectionStandard>
</xml>
比如说,代码已经加载了xml文件,现在需要显示出节点的名称,比如SectionStandard,Standard,Sections,Section
------解决思路----------------------
DataSet ds = new DataSet();
ds.ReadXml("test.xml");
for (int i = 0; i < ds.Tables.Count; i++)
{
listBox1.Items.Add(ds.Tables[i].ToString());
}