473,408 Members | 1,763 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,408 software developers and data experts.

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 3499
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.