日期:2014-05-19  浏览次数:20404 次

这样的xml格式化怎样读出?
用asp.net   2.0
<?xml   version= "1.0 "   encoding= "utf-8 "   ?>
<siteMap>
    <siteMapNode   id= "danyeguanli ">
        <siteMapNode   id= "gongsijianjie "> </siteMapNode>
    </siteMapNode>
    <siteMapNode   id= "wenzhangguanli ">
        <siteMapNode   id= "gongsixinwen "> </siteMapNode>
    </siteMapNode>
    <siteMapNode   id= "tuwenguanli ">
        <siteMapNode   id= "chanpingxinxi "> </siteMapNode>
    </siteMapNode>
</siteMap>

------解决方案--------------------
using System.Xml;
XmlTextReader或XmlDocument