title: How to get the last attribute in XML with Java?
body: <p>I have a XML file like this :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no" ?&gt; 
  &lt;user&gt;
      &lt;account phone ="2000"&gt;         
      &lt;/account&gt;
  &lt;/user&gt;
  &lt;user&gt;
      &lt;account phone ="2001"&gt;         
      &lt;/account&gt;
  &lt;/user&gt;
  &lt;user&gt;
      &lt;account phone ="2002"&gt;         
      &lt;/account&gt;
  &lt;/user&gt;
  &lt;user&gt;
      &lt;account phone ="2003"&gt;         
      &lt;/account&gt;
  &lt;/user&gt;
  </code></pre>
  
  <p>From java code, i want to get latest phone attribute . I'm not using condition that <code>attr.getValue()</code> because this data always updated, so I want to get the latest value of phone attribute.</p>