0
我想添加一個未命名的命名空間到我的根xmlnode。我該怎麼做呢?未命名的命名空間添加到xmlnode
錯誤消息---
爲元素或屬性的本地名稱不能爲空或空字符串。
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
XmlNode ShipmentReceiptNotification0Node = xmlDoc.CreateElement("ShipmentReceiptNotification", "", "namespacename");
ShipmentReceiptNotification0Node.InnerText = String.Empty;
xmlDoc.AppendChild(ShipmentReceiptNotification0Node);