title: Read single XML line with Java
body: <p>I'm trying to read a single XML line that looks like this:</p>
  
  <pre><code>&lt;position lat="59.3252414125" long="18.0750236375" accuracy="1000"&gt;&lt;/position&gt;
  </code></pre>
  
  <p>The goal here is take the values of "lat", "long" and "accuracy" and put them in three Java variables.</p>
  
  <p>EDIT: I guess I should've mentioned that the line is read from an XML, so it's not easily editable as it would appear.</p>