title: How to parse data inside CDATA in java
body: <p>I have a xml like below and i have to parse the username and password inside CDATA please say how to parse it.</p>
  
  <pre><code>&lt;myxml&gt;
   &lt;header&gt;
    &lt;sessionid&gt;12245834454835486&lt;/sessionid&gt;
   &lt;/header&gt;
   &lt;custommessage&gt;
    &lt;![CDATA[&lt;?xml version = "1.0" ?&gt;
    &lt;data&gt;
     &lt;users&gt;
      &lt;username&gt;yyy&lt;/username&gt;
      &lt;password&gt;xxx&lt;/password&gt;
     &lt;/users&gt;
   &lt;/data&gt;]]&gt;
   &lt;/custommessage&gt;
  &lt;/myxml&gt;
  </code></pre>