using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls. WebParts; using System.Web.UI.HtmlControls;
using System.Xml;
public partial class testXml_Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { XmlDocument xmldoc = new XmlDocument(); xmldoc.Load(Request.InputStream);//Received xml from the client XmlNode rootnode = xmldoc.DocumentElement; XmlNode pwd = rootnode.SelectSingleNode("pwd"); pwd.InnerText = "changed";//Change the xml document content on the server side
Response.Write (xmldoc.InnerXml);//Return the modified Xml document Response.End(); } }
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn