如何从URL读取XML [英] How to read XML from a URL

查看:80
本文介绍了如何从URL读取XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我是Vb.net开发人员,我需要知道如何读取包含XML格式数据的网页.
实际上,我正在将一些数据发送到URL,它将以XML响应我.我需要阅读它,但我不知道该怎么做.我可以读取XML文件,但不能读取网页.

如果您要引用我的操作方法,将不胜感激.

hello

I''m a Vb.net developer and I need to know how to read a web page that contains a XML format data.
in fact, i''m sending some data to a URL an it will response me in XML. I need to read it and I have no Idea how to do. I can read the XML files but not web pages.

I will appreciate you if you take me a quote how to do this.

推荐答案

这取决于您要使用什么来访问网站(顺便说一句,标题是有点误导-您正在从具有给定URL的网站中读取XML :)).请参阅文章 [
It depends on what are you going to use to access web site (BTW, title is a bit misleading - you are reading XML from a web site with a given URL :) ). See an article[^] on MSDN with an example of reading data from web with WebClient class - one of the possible ways.


这篇关于如何从URL读取XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆