
XmlElement xe1 = xmlnode.CreateElement("entry",xmlnode.DocumentElement.NamespaceURI);//創建一個<entry>節點
XmlElement xe2 = xmlnode.CreateElement("observation");
xe2.SetAttribute("classCode", "OBS");
xe2.SetAttribute("moodCode", "EVN");
xe1.AppendChild(xe2);
XmlElement code = xmlnode.CreateElement("code", xmlnode.DocumentElement.NamespaceURI);
code.SetAttribute("code", "DE05.10.148.00");
code.SetAttribute("codeSystemName", "衛生資訊資料元目錄");
code.SetAttribute("codeSystem", "2.16.156.10011.2.2.1");
code.SetAttribute("displayName", "疾病診斷編碼");
xe2.AppendChild(code);
//XmlNode childrenNode = doc.CreateElement("AbstractEntity");
// XmlAttribute cnAttr = doc.CreateAttribute("xsi:type");
XmlElement value = xmlnode.CreateElement("value", xmlnode.DocumentElement.NamespaceURI);
value.SetAttribute("code", "L20.900");
value.SetAttribute("codeSystemName", "ICD-10");
value.SetAttribute("codeSystem", "2.16.156.10011.2.3.3.11");
value.SetAttribute("displayName", "特應性皮炎");
value.SetAttribute("xis:type","CD");
xe2.AppendChild(value);
root.AppendChild(xe1);
生成完成后xis:type 就變成了type
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/235262.html
標籤:C#
上一篇:UDP廣播報錯,“套接字操作嘗試一個無法連接的主機”
下一篇:c#propertygrid 自定義屬性checklistbox,valuechanged如何獲取checklistbox狀態?
