XmlDocumentxmlDoc=
new
XmlDocument();
xmlDoc.Load(
"titles.xml"
);
XmlNodexn=xmlDoc.SelectSingleNode(
"items"
);
XmlNodeListxnl=xn.ChildNodes;
foreach
(XmlNodexnf
in
xnl)
{
XmlElementxe=(XmlElement)xnf;
Console.WriteLine(xe.GetAttribute(
));
XmlNodeListxnf1=xe.ChildNodes;
(XmlNodexn2
xnf1)
{
Console.WriteLine(xn2.InnerText);
//显示子节点点文本
}
Console.WriteLine();
}
myWebClient.DownloadFile(NewUri(strOldPath),strNewPath)
原文链接:https://www.f2er.com/xml/295161.html