title: Looping XML with element using xmlReader
body: <pre><code>   Dim client As New WebClient()
     Dim xmlString As String = client.DownloadString("http://api.rovicorp.com/TVlistings/v9/listings/gridschedule/80000/info?locale=en-US&amp;duration=220&amp;includechannelimages=1&amp;format=xml&amp;apikey=" &amp; api_TV)
     Dim counter As Integer = 0
  
  Using reader As XmlReader = XmlReader.Create(New StringReader(xmlString))
      Dim tvListings As XDocument = XDocument.Parse(xmlString)
  
      For Each blah As XElement In tvListings.Root.Elements
          counter += 1
      Next
  
      Debug.Print(counter)
  End Using
  </code></pre>
  
  <p>And i only get a <strong>counter</strong> of 8 which should be around 100+.</p>
  
  <p>The XML looks like this:</p>
  
  <pre><code>&lt;GetGridScheduleResult xmlns="http://api.rovicorp.com/v9/listings" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Locale="en-US" ServiceId="5122" Name="Cityhere - Comcast" StartDate="2013-04-12T14:18:24.2054325Z" Duration="240"&gt;
  &lt;GridChannels&gt;
    &lt;GridChannel ServiceId="890138" SourceId="1280" Order="20002" Channel="2" CallLetters="WGNAMER" DisplayName="WGNAMER" SourceLongName="WGN America" Type="24-Hours" SourceType="Basic" ParentNetworkId="0" IconAvailable="false" IsChannelOverride="false" SourceAttributes="0"&gt;
      &lt;ChannelSchedules/&gt;
      &lt;SourceAttributeTypes/&gt;
      &lt;Airings&gt;
          &lt;GridAiring ProgramId="35951" SeriesId="3490" Title="Matlock" EpisodeTitle="Santa Claus" AiringTime="2013-04-12T14:00:00Z" Duration="60" Color="Color" AiringType="Unknown" CC="true" LetterBox="false" Stereo="false" HD="false" SAP="false" TVRating="TV-PG" Dolby="false" DSS="false" HDLevel="HD Level Unknown" DVS="false" Category="Other" Subcategory="drama" Sports="false"/&gt;
          &lt;GridAiring ProgramId="828869" SeriesId="1409" Title="In the Heat of the Night" EpisodeTitle="Hatton's Turn" AiringTime="2013-04-12T15:00:00Z" Duration="60" Color="Color" AiringType="Unknown" CC="true" LetterBox="false" Stereo="false" HD="false" SAP="false" TVRating="TV-PG@V" Dolby="false" DSS="false" HDLevel="HD Level Unknown" DVS="false" Category="Other" Subcategory="crime drama" Sports="false"/&gt;
          &lt;GridAiring ProgramId="978338" SeriesId="1409" Title="In the Heat of the Night" EpisodeTitle="Hatton's Turn" AiringTime="2013-04-12T16:00:00Z" Duration="60" Color="Color" AiringType="Unknown" CC="true" LetterBox="false" Stereo="false" HD="false" SAP="false" TVRating="TV-PG@V" Dolby="false" DSS="false" HDLevel="HD Level Unknown" DVS="false" Category="Other" Subcategory="crime drama" Sports="false"/&gt;
          &lt;GridAiring ProgramId="4210626" Title="WGN Midday News" AiringTime="2013-04-12T17:00:00Z" Duration="60" Color="Color" AiringType="New" CC="true" LetterBox="false" Stereo="true" HD="false" SAP="false" TVRating="None" Dolby="false" DSS="false" HDLevel="HD Level Unknown" DVS="false" Category="News" Subcategory="newscast" Sports="false"/&gt;
          &lt;GridAiring ProgramId="878716" SeriesId="1028666" Title="Walker, Texas Ranger" EpisodeTitle="El Coyote, Part 2" AiringTime="2013-04-12T18:00:00Z" Duration="60" Color="Color" AiringType="Unknown" CC="true" LetterBox="false" Stereo="true" HD="false" SAP="false" TVRating="TV-14@V" Dolby="false" DSS="false" HDLevel="HD Level Unknown" DVS="false" Category="Other" Subcategory="crime drama" Sports="false"/&gt;
      &lt;/Airings&gt;
      &lt;ChannelImages&gt;
          &lt;ImageGrid ImageUrl="http://cps-static.rovicorp.com/2/Open/TV%20Guide%20Widget%20Logos/WGN_2010.png" ImageId="427700" ImageTitle="WGN America" ImageCaption="Widget Logo" ObjectId="1280" ObjectName="WGN America" ImageCreditDisplay="false" ImageType="Station Logo" ImageHorizontalResolution="92" ImageVerticalResolution="36" ImageFormatId="0" AspectRatio="5:2" ParentImageId="16818227"&gt;
              &lt;ObjectType&gt;Source&lt;/ObjectType&gt;
              &lt;ImageFormat xsi:nil="true"/&gt;
              &lt;ImageExpiryDateTime xsi:nil="true"/&gt;
              &lt;LastUpdate&gt;2012-01-24T15:20:46.453Z&lt;/LastUpdate&gt;
          &lt;/ImageGrid&gt;
      &lt;/ChannelImages&gt;
    &lt;/GridChannel&gt;
    etc etc...
  &lt;/GridChannels&gt;
  &lt;/GetGridScheduleResult&gt;
  </code></pre>