JAVA - Parse XML
<p>I have this XML:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;soapenv:Envelope&gt;
    &lt;soapenv:Body&gt;
        &lt;response&gt;
            &lt;note identifier="4719b11c-230e-4533-b1a5-76ac1dc69ef7" hash="956F3D94-A8B375ED-BA15739F-387B4F5E-75C6ED82" dat_prij="2016-09-27T23:06:20+02:00"/&gt;
            &lt;item uid="9f9cb5fb-75e6-4a2f-be55-faef9533d9ff-ff" active="true"/&gt;
        &lt;/response&gt;
    &lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;
</code></pre>

<p>I need parse <strong>item uid</strong>, in this case its value "9f9cb5fb...", but I dont know how to parse with Java standard nodes.
Thank you for advice.</p>

<p>Edited:
I tried this code, but not working:</p>

<pre><code>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    InputSource is = new InputSource(new StringReader(response));
    Document doc = builder.parse(is);

    Element root = doc.getDocumentElement();

    NodeList nList = doc.getElementsByTagName("soapenv:Envelope");
    NodeList body = nList.getElementsByTagName("soapenv:Body");
    NodeList resp = body.getElementsByTagName("response");


        Node node = nList.item("item");
        System.out.println("");    //Just a separator
        Element eElement = (Element) node;
        System.out.println(eElement.getAttribute("uid"));
</code></pre>