title: How can I extract a value from inside an xml tag using Nokogiri?
body: <p>How can I extract the <code>ID</code> from <code>TrackInfo</code> below?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;TrackResponse&gt; &lt;TrackInfo ID="9400110200883105817710"&gt; &lt;TrackSummary&gt;Your item departed our ATLANTA, GA 30320 sort facility on February 25, 2014. Information, if available, is updated periodically throughout the day. Please check again later.&lt;/TrackSummary&gt; &lt;TrackDetail&gt;Processed through USPS Sort Facility, February 25, 2014, 11:54 am, ATLANTA, GA 30320&lt;/TrackDetail&gt; &lt;TrackDetail&gt;Depart USPS Sort Facility, February 22, 2014, ORLANDO, FL 32824&lt;/TrackDetail&gt; &lt;TrackDetail&gt;Processed at USPS Origin Sort Facility, February 21, 2014, 4:39 am, ORLANDO, FL 32824&lt;/TrackDetail&gt; &lt;TrackDetail&gt;Accepted at USPS Origin Sort Facility, February 21, 2014, 3:24 am, ORLANDO, FL 32819&lt;/TrackDetail&gt; &lt;TrackDetail&gt;Electronic Shipping Info Received, February 15, 2014&lt;/TrackDetail&gt; &lt;/TrackInfo&gt; &lt;/TrackResponse&gt;
  </code></pre>
  
  <p>When I try <code>@xml.xpath('//TrackInfo')</code> I'm getting the entire body rather then just the ID.</p>
  
  <p>Thanks</p>