Сразу к делу. Есть строка вида:
<?xml version="1.0" encoding="utf-8"?>
<album>
<entry>
<id>253</id>
<title>title1</title>
</entry>
<entry>
<id>254</id>
<title>title2</title>
</entry>
</album>
DocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();
dbfactory.setNamespaceAware(true);
DocumentBuilder domparser = dbfactory.newDocumentBuilder();
StringReader reader = new StringReader(result);
InputSource inputSource = new InputSource(reader);
Document doc = domparser.parse(inputSource);
NodeList anime = doc.getElementsByTagName("album");