Click to return to the XML (Extensible Markup Language) home page    
Sending XML Between the C...     Converting XML to HTML     Using XML on the Server    
Web Workshop  |  XML (Extensible Markup Language)

Saving XML


You can save XML on the server using the save method, as shown in the following excerpt:

<% 
  Response.Expires = -1000;
  if (Request.ServerVariables("REQUEST_METHOD") == "POST") 
  {
    // Load the posted XML data and save it to disk.
    xmldoc.load(Request);
    xmldoc.save(Server.MapPath("saved.xml"));
%>
Ok        
<%
  }
%>

The MapPath method resolves relative paths into the full paths required on the server.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.