Hi
I'm new to ASP, but have been told that I can use it to easily update and save a file to disk.
I currently use XML and XSL files, and load them as a XMLDOM objects as per:
<%
'Load XML
set xml = Server.CreateObject("Microsoft.XMLDOM"
xml.async = false
xml.load(Server.MapPath("tblMasterFile.xml")
'Load XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM"
xsl.async = false
xsl.load(Server.MapPath("SetIgnoreFlags.xsl")
'Transform file
Response.Write(xml.transformNode(xsl))
%>
What I want the user to do is update the data on the screen, and I can then save the updated file direct to disk without the need for a (CGI) executable to do the write for me.
1) Is it possible?
2) Is there a simple way to do it using the DOM object, or do I have to use fso?
3) If I do have to use fso, how do I translate my xml file into an fso?
Many thanks
Rowan
I'm new to ASP, but have been told that I can use it to easily update and save a file to disk.
I currently use XML and XSL files, and load them as a XMLDOM objects as per:
<%
'Load XML
set xml = Server.CreateObject("Microsoft.XMLDOM"
xml.async = false
xml.load(Server.MapPath("tblMasterFile.xml")
'Load XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM"
xsl.async = false
xsl.load(Server.MapPath("SetIgnoreFlags.xsl")
'Transform file
Response.Write(xml.transformNode(xsl))
%>
What I want the user to do is update the data on the screen, and I can then save the updated file direct to disk without the need for a (CGI) executable to do the write for me.
1) Is it possible?
2) Is there a simple way to do it using the DOM object, or do I have to use fso?
3) If I do have to use fso, how do I translate my xml file into an fso?
Many thanks
Rowan