You can use XPath to select specific elements/attributes. Just search the web for Tutorials. Here is good one. You should also read the Java-Doc for java.xml.xpath, which includes short examples.
The XPath-Expression for your XML-File is: /server[@ID='xxxx']