title: Simplest way to get a single value out of an XML string?
body: <p>I want to get a single value out of a big XML string. I've got a string holding something like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;UserInfo&gt;
      &lt;User&gt;
          &lt;First&gt;Alice&lt;/First&gt;
          &lt;Last&gt;Avery&lt;/Last&gt;
          &lt;ID&gt;12345&lt;/ID&gt;
          &lt;Age&gt;25&lt;/Age&gt;
          &lt;OtherThing&gt;
              &lt;with&gt;stuff&lt;/with&gt;
              &lt;in&gt;it&lt;/in&gt;
          &lt;/OtherThing&gt;
      &lt;/User&gt;
  &lt;/UserInfo&gt;
  </code></pre>
  
  <p>Only much bigger and uglier, and all I want to get is the ID value: "12345". ID may have attributes on it and they may vary, or I'd probably just search the string with a regex. It seems like you ought to be able to do something like this in only 2 or 3 lines.</p>