XmlElement xmlElementSAPD = xmlDocument.CreateElement("SAPD");
root.AppendChild(xmlElementSAPD);
xmlElementSAPD.AppendChild(XmlFunctions.GetXMLElement(xmlDocument, "smu", dr.GetString("sma").Trim()));
上記のc#コードは、以下のXMLを作成します。
<SAPD>
<smu>123</smu>
</SAPD>
上記のコードを変更して、取得できるようにするにはどうすればよいですか?
<ns0:SAPD>
<ns0:smu>123</ns0:smu>
</ns0:SAPD>
誰?どうすればms0:をxmlノードに追加できますか?