foreach (System.Xml.XmlNode _Node in nodeList)
{
XmlElement Xmlele=(XmlElement) _Node;
Xmlele.SetAttribute("newDD_ID","TestDD_ID");
} docWrite.Save(sourceFile);
{
XmlElement Xmlele=(XmlElement) _Node;
Xmlele.SetAttribute("newDD_ID","TestDD_ID");
} docWrite.Save(sourceFile);
{
foreach(XmlAttribute xmlatt in xmlele.Attributes)
{
Console.WriteLine(xmlatt.Value);
}
}
{
if (navItem.Name=="title") //scan the property of the caption if the caption exist then do below
{
bool DD_IDExist=false; //default it doesn't exist
title=navItem.Value ; //get teh node 's caption
XPathNavigator dd_idItem = iterator.Current.Clone(); //defines another Navigator to search the nodes inside
// TODO: below is not the best sulution,
// dd_idItem.MoveToFirstAttribute();
// while (dd_idItem.MoveToNextAttribute())
// {
// if (dd_idItem.Name=="DD-ID")
// {
// DD_IDExist=true;
// break;
// }
// }