user2015858
user2015858

Reputation: 47

C# Web parsing web service response

I need to create an application that gets the stock value of a corporation using web services. I currently have a reference to the web service but I do not know how to parse the XML string I get. How do I select just the stock value?

protected void Button1_Click(object sender, EventArgs e)
{
    StockRefrence.StockQuote callWeb = new StockRefrence.StockQuote();
    string stock = callWeb.GetQuote("CSCO");
    Label1.Text = stock;
}

The web service I'm using http://www.webservicex.net/WS/WSDetails.aspx?WSID=9&CATID=2

Upvotes: 0

Views: 411

Answers (1)

ptutt
ptutt

Reputation: 1338

You probably want to use XPath:

.Net XPath Examples

Upvotes: 1

Related Questions