[Home] [By Thread] [By Date] [Recent Entries]
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:qazi@a...]
åéæ¶é´: 2003å¹´4æ29æ¥ 5:57
æ¶ä»¶äºº: xml-dev@l...
主é¢: 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
|

Cart



