473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

What is the perfered method in .NET over MSXML using XMLHTTPRequest?

using MSXML.dll, I have the following code:

XMLHTTPRequest tempXML = new XMLHTTPRequest();
string strURL = "http://someURIgoeshere.com/";
try
{
tempXML.open("GET", strURL, false, "", "");
tempXML.send(null);
e.Result = tempXML;
}

....no problem. Now I want to get an XML Nodelist from the responseXML
object of my result... I'm stuck there using MSXML.. following that, I
need to pick out some information using getElementsByTagName but I cant
get to that place.

Any info on both the MSXML version vs. the propper .NET way of doing it
would be great... I'm thinking it would deal w/ an HTTPWebRequest, but I
haven't got THERE either.

regards,
Michael McCarthy.
Nov 17 '05 #1
1 2159
Michael McCarthy <ju*@diffjuz.com> wrote:
using MSXML.dll, I have the following code:

XMLHTTPRequest tempXML = new XMLHTTPRequest();
string strURL = "http://someURIgoeshere.com/";
try
{
tempXML.open("GET", strURL, false, "", "");
tempXML.send(null);
e.Result = tempXML;
}

...no problem. Now I want to get an XML Nodelist from the responseXML
object of my result... I'm stuck there using MSXML.. following that, I
need to pick out some information using getElementsByTagName but I cant
get to that place.

Any info on both the MSXML version vs. the propper .NET way of doing it
would be great... I'm thinking it would deal w/ an HTTPWebRequest, but I
haven't got THERE either.


I'm not familiar with XMLHTTPRequest, so I don't know exactly what it
does, but if the idea is to read an XML document from HTTP, then
separating the concerns would seem to be a good idea. Use
HttpWebRequest to get a stream of data back from the web server, and
use XmlDocument.Load to load the stream into an XML document.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: SQLReporter | last post by:
Hi, I am trying to access a webservice method from a vbscript. I have a .cs file generated for my webservice. I am not sure how to proceed from this point onwards.... I have tried generating .dll...
10
by: G Matthew J | last post by:
interesting "signal vs. noise" blog entry: http://37signals.com/svn/archives2/whats_wrong_with_ajax.php
5
by: Steve Jorgensen | last post by:
I was having a bear of a time today trying to figure out some inconsistent behavior selecting nodes from and MSXML DOM document, so I distilled the issue down to a trivial test demonstrating the...
6
by: Alfred Taylor | last post by:
I'm having performance/memory problems using .NET's XslTransform class so I thought I'd give the MSXML object's a whirl. The question I haven't been able to find in these groups is can I use C#...
1
by: Michael McCarthy | last post by:
using MSXML.dll, I have the following code: XMLHTTPRequest tempXML = new XMLHTTPRequest(); string strURL = "http://someURIgoeshere.com/"; try { tempXML.open("GET", strURL, false, "", "");...
2
by: Ike | last post by:
Is anyone aware of any reason why the following won't work on a Windows Server 2003 r2 64 bit Edition? I am simply calling the following snippet, and trying to execute it in a browser window...
13
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to...
4
by: mrjaxon | last post by:
I have a C# web application which leverages MSXML that I am trying to migrate to a 64 bit environment. Currently the application is built on the .NET 2.0 Framework and using MSXML 6 (though I had...
4
by: ithinc | last post by:
Is there a method to send gmail through a xmlhttprequest?
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.