如何从C#中的Indeed.com API获取XML数据? [英] How do I get the XML data return from the Indeed.com API in C#?
问题描述
如何从C#中的Indeed.com API返回 XML ?
如何在asp中显示此信息。 net和c#。
我正在使用一个文本框,我必须输入城市名称。(搜索框)
列出框,其中所有信息都将出现在与该城市相关的工作。
[Indeed.com不提供任何.asmx文件,我可以在asp.net中作为参考。]
我的解决方法:
1.单击按钮调用xml文件
2.将XML数据加载到datatble中
3.将数据加载到Listview中。
我从早上开始研究这个问题但是很困惑。
我应该用另一种方式像jqueryajax($ .ajax)。
How do I get the XML return from the Indeed.com API in C#?
How i can show this information in asp.net and c#.
I am using one textbox where i have to put the name of the city.(search box)
List box where all the information will come regarding the jobs related to that city.
[indeed.com is not providing any .asmx file which I can use as reference in asp.net.]
My way of solving:
1. Call the xml file by clicking on the button
2. Load the XML data into datatble
3. Load the data into Listview .
I am working on this since morning but getting confused .
should I use the other way around like jqueryajax($.ajax).
推荐答案
.ajax)。
再次,你必须问Indeed.com 。首先,此处 [ ^ ]。
Again, you have to ask Indeed.com. You start with that here[^].
您好,
,因为你说你想要处理来自Indeed.com API的xml返回。对吗?
所以,我假设你有xml,但你无法处理它。然后看看这个。
Hi,
as you said you want to handle xml return from Indeed.com API. Right?
so, i am assuming you have xml but you are not able to handle it. Then see this.
string response; // Let's say you have xml in this response string.
XmlReader profile = XmlReader.Create(new StringReader(response));
DataSet ds = new DataSet();
ds.ReadXml(profile);
// ds will have all xml values..
就是这样。
希望它可以帮到你。
谢谢。
That's it.
Hope it helps you.
Thanks.
这篇关于如何从C#中的Indeed.com API获取XML数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!