XmlDocument xmldoc=new XmlDocument();xmldoc.Load("test.xml");XmlNode oNode=xmldoc.SelectSingleNode("//Provider[@Id='B75C029B-EE08-4a07-BFBD-F59E99DEA564']/Parameters/Parameter[@Name='Namespace']");if(oNode!=null){ oNode.Attributes["Value"].Value="XXXXXXXXX";}
XmlNode oNode2=xmldoc.SelectSingleNode("//Provider[@Id=B75C029B-EE08-4a07-BFBD-F59E99DEA565']/Parameters/Parameter[@Name='Namespace']");if(oNode2!=null){ oNode2.Attributes["Value"].Value="YYYYYYYY";}
xmldoc.save("test.xml");
http://community.csdn.net/Expert/topic/4211/4211280.xml?temp=.1017572