[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

=?utf-8?Q?=E7=AD=94=E5=A4=8D=3A_=5Bxml-dev=5D_Http_XML_File_?=

  • To: "asim" <qazi@a...>,<xml-dev@l...>
  • Subject: =?utf-8?Q?=E7=AD=94=E5=A4=8D=3A_=5Bxml-dev=5D_Http_XML_File_?=
  • From: =?utf-8?B?ZmNf5pa56LaF?= <fangc@b...>
  • Date: Tue, 29 Apr 2003 09:18:59 +0800
  • Thread-index: AcMNbPS4ugGHkDyGTrmR501Wfq2I+wAfkMLw
  • Thread-topic: Http XML File

utf 8 q
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

Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.