title: Trying to write a delimited file using LINQ and XML, but can't make it work with strings
body: <p>I'm very new to programming and I'm trying to get information from IMDB on a list of about 1500 movies. I found a website to get the data from in an XML file but I'm having trouble getting the data out. I wanted to write this into a delimited file so I can import this entire thing in access so I can have a comprehensive imdb database of these movies. this is my code thus far.</p>
  
  <pre><code>    Imports System.IO
      Imports System.Xml
      Imports System.Text
  
      Public Class Form1
  
  
  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StartButton.Click
  
      Dim bug As String = ""
      Dim genre As String = ""
      Dim MoviesList() As String
      Dim counter As Integer = 0
      Dim amirunning As Boolean = True
      Dim rating As String = ""
      Dim year As String
      Dim rated As String
      Dim directors As String
      Dim writers As String
      Dim actors As String
      Dim plot As String
  
  
  
      MoviesList = {1500 movies in here}
  
      Do While counter &lt; MoviesList.Length And counter &lt;= 0
  
          Label1.Text = MoviesList(counter)
  
          WebBrowser1.Navigate("http://deanclatworthy.com/imdb/?q=" &amp; MoviesList(counter) &amp; "&amp;type=xml")
  
          Dim BookXDocument = XDocument.Load("http://deanclatworthy.com/imdb/?q=" &amp; MoviesList(counter) &amp; "&amp;type=xml")
          Dim myquery = From movie In BookXDocument.&lt;movie&gt;
          Select movie...&lt;genres&gt;.Value
  
  
          Dim myquery2 = From movie In BookXDocument.&lt;movie&gt;
          Select movie...&lt;languages&gt;.Value
  
  
          textbox1.text = myquery
  
  
  
          counter = counter + 1
      Loop
  
  End Sub
  
  
  End Class
  </code></pre>
  
  <p>I cant figure out how the hell to get the myquery and myquery2 values to be used as a string!</p>
  
  <p>I get the following error on line </p>
  
  <pre><code>    textbox1.text = myquery
  </code></pre>
  
  <p>it comes back as "Unable to cast object of type 'WhereSelectEnumerableIterator`2[System.Xml.Linq.XElement,System.String]' to type 'System.String'."</p>