0
A
回答
3
1
這裏的簡化解決方案,你彷彿要詢問:
using System.Xml;
...
//Create XML Document
XmlDocument xmlDoc = new XmlDocument();
//Crate a node and add it to document
XmlNode node = xmlDoc.CreateElement("Test1");
xmlDoc.AppendChild(node);
//Create an attribute and add it to node
XmlAttribute attrib = xmlDoc.CreateAttribute("unitTest");
attrib.Value = "KGM";
node.Attributes.Append(attrib);
//Add text content to node
node.InnerText = "1324";
相關問題
- 1. 檢查如果XML節點的父母有特殊attibute
- 2. 如何製作特殊的cron作業?
- 3. 如何找到特定的xml節點?
- 4. 如何用groovy markupbuilder創建帶特殊節點名稱的xml文檔
- 5. 如何使用XSLT製作xml節點的子節點的精確副本?
- 6. 如何獲得節點的索引節點的數量有特殊屬性值
- 7. XML:在特定節點
- 8. XML到PSV特定節點
- 9. XSL - 如何檢索XML節點的基礎上的XML節點
- 10. 在AS3中,XML節點值如何用作另一個節點?
- 11. 如何製作「節點」。工作?
- 12. XSLT XML到XML選擇特定節點
- 13. XML特殊字符
- 14. 如何複製屬性的XML節點到特定的結構或陣列
- 15. 如何使用xml節點
- 16. 如何更新XML節點?
- 17. 如何刪除XML節點?
- 18. 我如何從XML節點
- 19. 如何強制XML將特殊字符視爲純文本?
- 20. 如何從XML複製節點而不使用XSLT複製該節點的子節點?
- 21. 排序特定的xml節點
- 22. 刪除xml中的特定節點
- 23. 只輸出特定的節點PHP XML
- 24. 不能達到特定的XML節點
- 25. 加載特定的XML節點值C#
- 26. C#寫於特定的XML節點
- 27. 排序只有特定的XML節點
- 28. 檢索特定的XML節點,jQuery
- 29. 獲取特定的XML節點
- 30. 獲取特定的xml節點屬性
你的意思attribure? – Marusyk
是的,我認爲這是我正在尋找的。不知道我應該搜索哪個詞。 – xileb0