Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Posting XML files to an ASP Page

Status
Not open for further replies.

andyUK

Programmer
Dec 19, 2000
39
GB
I need to post an XML file from vbasic in to a asp page on my server.

How do i go about receiving this file and processing it?
 
Hi.

To send the XML from the client side call this ASP:

<SCRIPT LANGUAGE=&quot;VBSCRIPT&quot; RUNAT=&quot;SERVER&quot;>
dim xmldoc
set xmldoc = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;)
xmldoc.load(Request)
xmldoc.save(Server.MapPath(&quot;sca.xml&quot;))

</SCRIPT>


and to send an XML to a Client call this:

<SCRIPT LANGUAGE=&quot;VBSCRIPT&quot; RUNAT=&quot;SERVER&quot;>
dim xmldoc
set xmldoc = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;)
xmldoc.load(Server.MapPath(&quot;sca.xml&quot;))
xmldoc.save(Response)
</SCRIPT>


regards, Kirilla

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top