[英]How can I get a response from a url in XML instead of JSON?
I am trying to access a website using C# and HttpWebRequest. 我正在尝试使用C#和HttpWebRequest访问网站。 I can get the response from the website but the response is in JSON. 我可以从网站获得响应,但是响应是JSON。 Is there any way to get the response in XML instead of JSON so I can use XmlDocument to parse through the information? 有什么方法可以获取XML而不是JSON的响应,因此我可以使用XmlDocument来解析信息? I was asked to use XML instead of JSON... 我被要求使用XML而不是JSON ...
Any help is appreciated! 任何帮助表示赞赏! :) :)
No.what kind of response format all depends on the website. 否。哪种响应格式都取决于网站。 you just can follow the response format to make your logic 您可以按照响应格式来制定逻辑
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.