473,472 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Load XML from the web

Hi all!
I have a quick question. How can I do to load an xml document from the web.
Should I use the XMLDocument or some http class.

TIA,
Sebastián
Nov 12 '05 #1
5 3500
The Load method of System.Xml.XmlDocument takes an URL.
You can also use XmlTextReader.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Sebastián" <NO***********@poderjudicial.gub.uy> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi all!
I have a quick question. How can I do to load an xml document from the
web.
Should I use the XMLDocument or some http class.

TIA,
Sebastián

Nov 12 '05 #2
Sorry about that dumb question...
thanx

"Dennis Myrén" <de****@oslokb.no> wrote in message
news:15****************@news4.e.nsc.no...
The Load method of System.Xml.XmlDocument takes an URL.
You can also use XmlTextReader.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Sebastián" <NO***********@poderjudicial.gub.uy> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi all!
I have a quick question. How can I do to load an xml document from the
web.
Should I use the XMLDocument or some http class.

TIA,
Sebastián


Nov 12 '05 #3
and what if I'm behind a web proxy as I am...
The Load method does not allow for proxy credentials, does it?

I tried using the WebRequest and WebResponse with no luck...

Thanks,
Sebastián

"Dennis Myrén" <de****@oslokb.no> wrote in message
news:15****************@news4.e.nsc.no...
The Load method of System.Xml.XmlDocument takes an URL.
You can also use XmlTextReader.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Sebastián" <NO***********@poderjudicial.gub.uy> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi all!
I have a quick question. How can I do to load an xml document from the
web.
Should I use the XMLDocument or some http class.

TIA,
Sebastián


Nov 12 '05 #4
Then i think you have to use a HttpWebRequest to load the stream
before loading the XML.
This supports using a Proxy through the Proxy property.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Sebastián" <NO***********@poderjudicial.gub.uy> wrote in message
news:uu**************@TK2MSFTNGP14.phx.gbl...
and what if I'm behind a web proxy as I am...
The Load method does not allow for proxy credentials, does it?

I tried using the WebRequest and WebResponse with no luck...

Thanks,
Sebastián

"Dennis Myrén" <de****@oslokb.no> wrote in message
news:15****************@news4.e.nsc.no...
The Load method of System.Xml.XmlDocument takes an URL.
You can also use XmlTextReader.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Sebastián" <NO***********@poderjudicial.gub.uy> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
> Hi all!
> I have a quick question. How can I do to load an xml document from the
> web.
> Should I use the XMLDocument or some http class.
>
> TIA,
> Sebastián
>
>



Nov 12 '05 #5
there is also a default proxy you can specify in web.config or app.config
(or what have you), and I believe the XmlDocument.Load() method will utilize
this proxy if it is set. Try it.

<configuration>
<system.net>
<defaultProxy>
<proxy proxyaddress="http://localhost:3128" bypassonlocal="false" />
</defaultProxy>
</system.net>
</configuration>

-Dino
"Dennis Myrén" <de****@oslokb.no> wrote in message
news:iU****************@news4.e.nsc.no...
Then i think you have to use a HttpWebRequest to load the stream
before loading the XML.
This supports using a Proxy through the Proxy property.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Sebastián" <NO***********@poderjudicial.gub.uy> wrote in message
news:uu**************@TK2MSFTNGP14.phx.gbl...
and what if I'm behind a web proxy as I am...
The Load method does not allow for proxy credentials, does it?

I tried using the WebRequest and WebResponse with no luck...

Thanks,
Sebastián

"Dennis Myrén" <de****@oslokb.no> wrote in message
news:15****************@news4.e.nsc.no...
The Load method of System.Xml.XmlDocument takes an URL.
You can also use XmlTextReader.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Sebastián" <NO***********@poderjudicial.gub.uy> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
> Hi all!
> I have a quick question. How can I do to load an xml document from the
> web.
> Should I use the XMLDocument or some http class.
>
> TIA,
> Sebastián
>
>



Nov 12 '05 #6

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

Similar topics

1
by: Ray in HK | last post by:
What are the differences between LOAD DATA INFILE and LOAD DATA LOCAL INFILE ? I found some web hosting company do not allow using LOAD DATA INFILE but allow LOAD DATA LOCAL INFILE. The reason...
6
by: JS | last post by:
EE instance DB2 v7.2.0 fixpack 3 on WIN2K. I select some data from a table A and write it to a file using the COALESCE function and whitespace as the null character: eg coalesce(col1, ' '). This...
2
by: **Developer** | last post by:
I have a Form (FV&C) containing a userconrtrol (CF&E) I do a ShowDialog for the form and the form's Load calls a method of the UserControl. The first time I do this the usercontrol appears on...
3
by: db2udbgirl | last post by:
Env: DB2 UDB 8.2, AIX 5.3 While trying to load data (73 Million rows, Medium size table uses 4K tablespace) into a table using cursor it fails with "SQL0964C The transaction log for the database...
1
by: dbagirltx | last post by:
We have done some testing with mixed and forgotten results. So I'm hoping that asking here can clarify some issues for us. Right now we do one weekly warm backup. Throughout the week there are...
1
by: huyuhui | last post by:
The following is a question of LOAD utility. Question: How does the DB2 enforce table check constraints for data added to table with the LOAD utility? A. With the BUILD phase of LOAD B. With the...
2
by: contractsup | last post by:
Environment: $ uname -a AIX <withheld2 5 000100614C00 $ db2level DB21085I Instance "<withheld>" uses "32" bits and DB2 code release "SQL08024" with level identifier "03050106"....
5
by: danfan46 | last post by:
Hi. I'm on DB2 9.5.0.1 on Linux AMD 64 and the database has four partitions where catalog is on partion 0 and user data on 1 thru 3. After a load failure (path to load file was wrong) I...
2
by: David Thielen | last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows 2008 Server running IIS7. We have copied all files to the Windwardreports\apps directory and that apps directory has been...
13
by: rdudejr | last post by:
Hi all, I hardly ever make a post unless I am having a very purplexing issue, so this one should be good... I am trying to do a load against a database on an AIX server into a DB2 v9.1...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.