← Prev in month
← Prev in thread
Next in thread →
Next in month →
答复: [xml-dev] Http XML File
Using ASP please use IServerXMLHTTP interface.
Here's an example:
<%@language=JScript%>
<%
var objSrvHTTP;
objSrvHTTP = Server.CreateObject ("MSXML2.ServerXMLHTTP.4.0");
objSrvHTTP.open ("GET","http://someotherserver/respond.asp", false);
objSrvHTTP.send ();
Response.ContentType = "text/xml";
Response.Write (objSrvHTTP.responseXML.xml);
%>
to use at the client side,we could select "IXMLHTTPRequest" interface.
Here's an example:
<script language="JScript">
function PostOrder(xmldoc)
{
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.4.0");
xmlhttp.Open("POST", "http://myserver/orders/processorder.asp", false);
xmlhttp.Send(xmldoc);
return xmlhttp.responseXML;
}
</script>
and I never use load to load xml in URL except dataisland in html page.Did anyone do this in succeed?
-----邮件原件-----
发件人: asim [mailto:]
发送时间: 2003年4月29日 5:57
收件人:
主题: [xml-dev] Http XML File
Hi
when i use xmldom.load method it need the physical path of xml file .... and works great, plz guide me what should i learn or read if i wana use xml data which coming through http like http://somesite.com/xmldata/test/xmlfile.xml what should i do if i wanna load this file
I m using ASP and MSXML parser
Thankx in Advance
Qazi Asim
← Prev in month
← Prev in thread
Next in thread →
Next in month →