Esempio n. 1
0
 /// <summary>
 /// 设置Xmldoc的内容为strInnerXml
 /// </summary>
 /// <param name="Xmldoc"></param>
 /// <param name="strInnerXml">为空时初始化Xmldoc</param>
 protected void SetInnerXml(XmlDataDocument Xmldoc, string strInnerXml)
 {
     if (strInnerXml == "")
     {
         strInnerXml = @"<variables></variables>";
     }
     if (Xmldoc.HasChildNodes)
     {
         Xmldoc.RemoveAll();
     }
     Xmldoc.InnerXml = strInnerXml;
 }