title: How To Parse XDocument (Ebay) Items (List) Using Visual Basic?
body: <pre><code>&lt;code&gt; 
          For Each oXElement In oXDocument.Descendants("searchResult")
                sTitle = oXElement.Element("title").Value
          Next
  &lt;/code&gt;
  </code></pre>
  
  <p>I have also tried: </p>
  
  <pre><code>&lt;code&gt; 
         For Each oXElement In oXDocument.Elements(searchResults) 
             sTitle = oXElement.Element("title").Value 
          Next
  &lt;/code&gt;
  </code></pre>
  
  <p>I am having trouble getting a hold of nodes as well as understanding the way you communicate with XDocument nodes.</p>
  
  <p>My Ultimate goal is to create an Ebay Object Model From all Ebay Element's Attributes. For that I need to refer to  XML tag somehow - and this is where I would appreciate your advice or sample example that could let me proceed with parsing out this XML response.</p>
  
  <p>Thank you all much for any help.</p>
  
  <p>PS: I have searched for a similar questions and found a few of the same kind but still could not get my parsing to work.  </p>
  
  <pre><code>&lt;findItemsByProductResponse xmlns="http://www.ebay.com/marketplace/search/v1/services"&gt;
    &lt;ack&gt;Success&lt;/ack&gt;
    &lt;version&gt;1.12.0&lt;/version&gt;
    &lt;timestamp&gt;2013-06-02T22:42:04.500Z&lt;/timestamp&gt;
    &lt;searchResult count="5"&gt;
      &lt;item&gt;
        &lt;itemId&gt;370821427802&lt;/itemId&gt;
        &lt;title&gt;
  Modern Database Management 11E by Hoffer, Ramesh, Topi 11th (Int'l Edition)
  &lt;/title&gt;
        &lt;globalId&gt;EBAY-US&lt;/globalId&gt;
        &lt;primaryCategory&gt;
          &lt;categoryId&gt;2228&lt;/categoryId&gt;
          &lt;categoryName&gt;Textbooks, Education&lt;/categoryName&gt;
        &lt;/primaryCategory&gt;
        &lt;galleryURL&gt;
  http://thumbs3.ebaystatic.com/m/meSAqCRbXecSjZjO1833dWQ/140.jpg
  &lt;/galleryURL&gt;
        &lt;viewItemURL&gt;
  http://www.ebay.com/itm/Modern-Database-Management-11E-Hoffer-Ramesh-Topi-11th-Intl-Edition-/370821427802?pt=US_Texbook_Education
  &lt;/viewItemURL&gt;
        &lt;productId type="ReferenceID"&gt;143649496&lt;/productId&gt;
        &lt;paymentMethod&gt;PayPal&lt;/paymentMethod&gt;
        &lt;autoPay&gt;true&lt;/autoPay&gt;
        &lt;location&gt;Malaysia&lt;/location&gt;
        &lt;country&gt;MY&lt;/country&gt;
        &lt;shippingInfo&gt;
          &lt;shippingServiceCost currencyId="USD"&gt;0.0&lt;/shippingServiceCost&gt;
          &lt;shippingType&gt;Free&lt;/shippingType&gt;
          &lt;shipToLocations&gt;Worldwide&lt;/shipToLocations&gt;
          &lt;expeditedShipping&gt;true&lt;/expeditedShipping&gt;
          &lt;oneDayShippingAvailable&gt;false&lt;/oneDayShippingAvailable&gt;
          &lt;handlingTime&gt;1&lt;/handlingTime&gt;
        &lt;/shippingInfo&gt;
        &lt;sellingStatus&gt;
          &lt;currentPrice currencyId="USD"&gt;54.07&lt;/currentPrice&gt;
          &lt;convertedCurrentPrice currencyId="USD"&gt;54.07&lt;/convertedCurrentPrice&gt;
          &lt;sellingState&gt;Active&lt;/sellingState&gt;
          &lt;timeLeft&gt;P20DT10H47M20S&lt;/timeLeft&gt;
        &lt;/sellingStatus&gt;
        &lt;listingInfo&gt;
          &lt;bestOfferEnabled&gt;false&lt;/bestOfferEnabled&gt;
          &lt;buyItNowAvailable&gt;false&lt;/buyItNowAvailable&gt;
          &lt;startTime&gt;2013-05-24T09:25:25.000Z&lt;/startTime&gt;
          &lt;endTime&gt;2013-06-23T09:29:24.000Z&lt;/endTime&gt;
          &lt;listingType&gt;StoreInventory&lt;/listingType&gt;
          &lt;gift&gt;false&lt;/gift&gt;
        &lt;/listingInfo&gt;
        &lt;returnsAccepted&gt;true&lt;/returnsAccepted&gt;
        &lt;condition&gt;
          &lt;conditionId&gt;1000&lt;/conditionId&gt;
          &lt;conditionDisplayName&gt;Brand New&lt;/conditionDisplayName&gt;
        &lt;/condition&gt;
        &lt;isMultiVariationListing&gt;false&lt;/isMultiVariationListing&gt;
        &lt;topRatedListing&gt;true&lt;/topRatedListing&gt;
      &lt;/item&gt;
      &lt;item&gt;...&lt;/item&gt;
      &lt;item&gt;...&lt;/item&gt;
      &lt;item&gt;...&lt;/item&gt;
      &lt;item&gt;...&lt;/item&gt;
    &lt;/searchResult&gt;
    &lt;paginationOutput&gt;
      &lt;pageNumber&gt;1&lt;/pageNumber&gt;
      &lt;entriesPerPage&gt;5&lt;/entriesPerPage&gt;
      &lt;totalPages&gt;3&lt;/totalPages&gt;
      &lt;totalEntries&gt;14&lt;/totalEntries&gt;
    &lt;/paginationOutput&gt;
    &lt;itemSearchURL&gt;
  http://www.ebay.com/ctg/143649496?LH_BIN=1&amp;_ddo=1&amp;_incaucbin=0&amp;_ipg=5&amp;_pgn=1
  &lt;/itemSearchURL&gt;
  &lt;/findItemsByProductResponse&gt;
  </code></pre>