Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 14th, 2004, 02:02 AM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Finding , Locatin and Receiving data with XML.

Hi there...

I need to create a web page that has approaching to another web site (cnn.com for example) in order to receive information about weather,into my site.
I know it is possible to do that with XML.

1. How do i do that?
2. How do I know where to look for that data? (the cnn.com its an
   example...)

NB: I need to do it in asp page (Visual Studio 6...)





 
Old May 25th, 2004, 07:43 AM
Authorized User
 
Join Date: Nov 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sonicDace Send a message via MSN to sonicDace Send a message via Yahoo to sonicDace
Default

Hey, Betsy

I see you've had this question up for a while. Now that I know you're using ASP, maybe I can be of better help.

I don't know what version of IIS XMLHttp ships with, but if you have Internet Explorer 5.5 or up, you can instantiate it using the following:


Dim objXMLHttp
set objXMLHttp = createObject ("Microsoft.XMLHttp")

objXMLHttp.Open "GET", "http://www.CNN.com", False


then, to retreive CNN.com's html, you do this

CNNHTML = objXMLHttp.responsetext


now CNNHTML contains the entire html of the CNN.com page, and you can parse that out leaving only the information you're interested in

Hope this helps




thanks
 
Old May 25th, 2004, 07:45 AM
Authorized User
 
Join Date: Nov 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sonicDace Send a message via MSN to sonicDace Send a message via Yahoo to sonicDace
Default

Oh,

I probably should add that you can add Post variables and send the request as Post, Get, etc.

Here's a cute little page that goes straight to the point on how to use XMLHttp.

http://www.4guysfromrolla.com/webtech/110100-1.shtml



thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Receiving data from parallel port using C#.net venkatvens Visual C++ 0 August 11th, 2008 05:44 AM
Receiving incorrect data from website request jvlkathyk Apache Tomcat 0 December 6th, 2006 12:02 PM
Finding the most common value in an XML set Teeeeej XSLT 7 December 17th, 2004 08:59 AM
Receiving XML Transmit RobinR Classic ASP XML 1 July 16th, 2003 03:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.