从网络服务器接收XML [英] Receive a XML from a webserver

查看:158
本文介绍了从网络服务器接收XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我必须从Web服务器收到Xml-Sheet,但我不知道该怎么做.
该请求应该是一个https调用-这是在我的程序中生成的.当我用浏览器打开该URL时,我得到了Xml-Sheet.
现在,我想在程序中接收此xml-Sheet,并希望阅读它.
你能帮我吗?
(我更喜欢在vb.net中执行此操作,但也可以使用c#.)

谢谢!
Z

Hi everyone.

I have to receive a Xml-Sheet from a webserver and I don''t know how to do this.
The request should be a https call - which is generated in my program. When I open this url with the browser, I get a Xml-Sheet back.
Now I want to receive this xml-Sheet with my program and i want to read it.
Can you help me ?
(I prefere to do it in vb.net but c# would be also possible..)

Thanks!
Z

推荐答案

使用HttpWebRequest,您将获得一个网页.此时,您可以解析html/xml.有几篇CodeProject文章讨论了如何做这些事情.我和其他人写了几本书:

CodeProject文章抓取 [已重新审视CodeProject文章抓取工具 [ CP Vanity [
Use HttpWebRequest, and you''ll get a web page back. At that point, you can parse the html/xml. There are several CodeProject articles that discuss how to do these things. I''ve written a couple, as have others:

CodeProject Article Scraping[^]

CodeProject Article Scraper, Revisited[^]

CP Vanity[^]


这篇关于从网络服务器接收XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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