Here's a portion of my XML string.
<OpenSearchDescription>
<opensearch:Query searchTerms="Star Wars"/>
<opensearch:totalResults>18</opensearch:totalResults>
Here's my code:
The line "Dim xml As String = tmdb_.Movie_search(tbTitle.Text, cbYear.Text)" produces a string with the entire xml return. How do I go about setting lbResult.Text to "18" or the value of "<opensearch:totalResults>"Code:Dim xml As String = tmdb_.Movie_search(tbTitle.Text, cbYear.Text) Dim xdoc As XDocument = XDocument.Parse(xml) lbResults.Text = xdoc.Element("totalResults").Value.ToString
Thanks!




Reply With Quote