XmlDocument xmldoc = new XmlDocument();

来源:互联网 发布:当红网络女主播 编辑:程序博客网 时间:2024/05/23 22:16

 XmlDocument xmldoc = new XmlDocument();
 XmlElement xmlE = xmldoc.CreateElement("", "requestcancelorderinfo", "");
 XmlNode root = xmldoc.AppendChild(xmlE);          
 xmlE = xmldoc.CreateElement("", "customerid", "");              
 xmlE.InnerText = drtbKuwuCarryDefine["customerId"].ToString();   
 root.AppendChild(xmlE);           
 xmlE = xmldoc.CreateElement("", "ordercode", "");          
 xmlE.InnerText = order.Id.ToString();          
 root.AppendChild(xmlE);            
 xmlE = xmldoc.CreateElement("", "remark", "");
 xmlE.InnerText = "";                
 root.AppendChild(xmlE);           
 StringWriter sw = new StringWriter();    
 xmldoc.Save(sw);      
 string logistics_interface = sw.ToString ()

原创粉丝点击