Decode XML message in Java
<p>i get the following String through a TCP connection:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no" ?&gt;
  &lt;IOCMSG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="AAA_XXX/IOCMSG.xsd"&gt;
    &lt;FTRR&gt;
     &lt;TIME&gt;20160302114115&lt;/TIME&gt;
     &lt;FPLA&gt;
       &lt;FCNADATA AIBT="" ARW="34R" ATL="" DATE="160302" DELO="FICUS" EOBT="201603020948" PORT="1234       " IDT="ARRIVO  " TCT="H" TXID="        "/&gt;&lt;/FPLA&gt;
    &lt;/FTRR&gt;
  &lt;/IOCMSG&gt;
</code></pre>

<p>i need to extract from this string only the field inside the message.</p>

<p>i tried </p>

<pre><code>DOMParser parser = new DOMParser();
                    try {
                        parser.parse(new InputSource(new java.io.StringReader(fromAAI)));
                        Document doc = parser.getDocument();
                        String message = doc.getDocumentElement().getTextContent();
                        System.out.println("___" + message);
                    } catch (SAXException e) {

                    } catch (IOException e) {

                    }
</code></pre>

<p>but of course it just print the TIME.
can anyone help me with some example?</p>