I try to parse a xml-feed with the follow data:
<company>
<year id="2000">
<quarter id="1" sales="80"/>
</year>
<year id="2001">
<quarter id="1" sales="20"/>
</year>
</company>
Is it possible to get only the year with the value 2001?
I have the follow code:
URL url = new URL(feedUrl);
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {
     InputStream is = conn.getInputStream();
     //DocumentBuilderFactory, DocumentBuilder are used for 
     //xml parsing
     DocumentBuilderFactory dbf = DocumentBuilderFactory
       .newInstance();
     DocumentBuilder db = dbf.newDocumentBuilder();
     //using db (Document Builder) parse xml data and assign
     //it to Element
     Document document = db.parse(is);
     Element element = document.getDocumentElement();
     //take rss nodes to NodeList
     element.normalize();
     NodeList nodeList =  ???????
 
     
    