读XML

XmlDocument xml=new XmlDocument();
xml.Load(Server.MapPath ("")+"//xmlfile//title.xml");
XmlNode child = xml.SelectSingleNode("/titlenodes/titles");
if (child != null)
{
XmlNodeReader nr = new XmlNodeReader(child );
while (nr.Read() )
Response.Write( nr.Value );
}
阅读更多

没有更多推荐了,返回首页