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

XML from URL in VBscript

  • From: Warren Keane <Warren@o...>
  • To: "Xml-Dev Mailing List (E-mail)" <xml-dev@l...>
  • Date: Fri, 18 May 2001 00:14:56 -0700

vbscript xml
Hi, 

I need some advice on how to capture and subsequently process
an XML document through HTTP. Our environment is Windows 
2K server, ASP pages using VBscript. I am using an ASP 
which queries the browser, if the browser if IE 5 then the XML
document is transformed by the client otherwise it is done 
on the server. I created a test XML document based on a HHTP
live feed that I need to start using and and XSL which converts
the XML into HTML for display. 

Everything works fine in test mode but this is using a XML
document that I created with a text editor and saved to
the server. What I really need to do is capture the document
realtime from a URL and then process it. For example right now I have 
this:


if ie5 then
  response.write(OutputDocument("quote.xml"))
else
  response.write(TransformDocument("quote.xml","quote.xsl"))
end if

The OutputDocument routine send the XML dirtectly to the browser
and the TransformDocument does the server transformation. However
I need to be able to to capture the "quote.xml" document straight
from the URL. Something like 
quote.xml = http://www.trades.com/demo/xml/tscGetQuote.php3?symbol=SPH1.

My questions are:

1) Are there VBscript functions that I can use to capture the output
   from the URL into a variable and then pass it to my transformation
   routines.
   
2) Is there something I can do in either the XML or XSL files to 
   dynamically capture the XML document that resides at the URL?
   Something like text/xml href=url...
   
Any advice would be greatly appreciated.   

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-2013 All Rights Reserved.