更新时间:2023-01-21 16:00:47
试试看:
var document = new XmlDocument();
document.Load("d:\\xmlfile.xml"); //or use LoadXml for a xml string
document.ChildNodes[2]["cbc:ProfileID"].InnerXml = "Foo value";
PS: "cbc:ProfileID" 这只是一个例子.您可以使用其他属性.
PS: "cbc:ProfileID" it's just a example. You can use other properties.