title: How can I parse CDATA?
body: <p>How can I find and iterate through all the nodes present under CDATA and those nodes are started by (<code>&amp;lt;</code>) and closed by (<code>&amp;gt;</code>)?</p>
  
  <p>Also, how should I iterate over all the child nodes and get the values like in below child node? I want to retrieve the value.</p>
  
  <p><strong>Input XML</strong></p>
  
  <pre><code>    &lt;SOURCE TransactionId="1" ProviderName="ABCDD"&gt;&lt;RESPONSE&gt;&lt;![CDATA[&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;&lt;soap:Body&gt;&lt;NetworkResponse xmlns="http://www.example.com/"&gt;&lt;NetworkResult&gt;&amp;lt;Network offering_id="13" transaction_id="2" submission_id="3" timestamp="20140828  16010683 GMT" customer_id="NETTest"&amp;gt;
          &amp;lt;Network_List&amp;gt;
              &amp;lt;Network_Info att0="Y" att1="N" att2="N" att3="Y" att4="Y"&amp;gt;
              &amp;lt;SIM_DATA&amp;gt;
                      &amp;lt;SIM&amp;gt;&amp;lt;![CDATA[1100040101]]&amp;gt;&amp;lt;/SIM&amp;gt;
      &amp;lt;/SIM_DATA&amp;gt;
      &amp;lt;NetworkResponseInfo k_status="C"&amp;gt;
                      &amp;lt;KEY1&amp;gt;269&amp;lt;/KEY1&amp;gt;
                      &amp;lt;PARENTNODE&amp;gt;
                          &amp;lt;CHILDNODE1&amp;gt;
                              &amp;lt;KEY2&amp;gt;XXXXXXX&amp;lt;/KEY2&amp;gt;
                              &amp;lt;KEY3&amp;gt;YYYYYYY&amp;lt;/KEY3&amp;gt;
                          &amp;lt;/CHILDNODE1&amp;gt;
                          &amp;lt;CHILDNODE2&amp;gt;
                              &amp;lt;KEY4&amp;gt;N&amp;lt;/KEY4&amp;gt;
                              &amp;lt;KEY5&amp;gt;I&amp;lt;/KEY5&amp;gt;
                          &amp;lt;/CHILDNODE2&amp;gt;
                          &amp;lt;CHILDNODE3&amp;gt;
                              &amp;lt;KEY6&amp;gt;1&amp;lt;/KEY6&amp;gt;
                              &amp;lt;KEY7&amp;gt;3&amp;lt;/KEY7&amp;gt;
                          &amp;lt;/CHILDNODE3&amp;gt;
                      &amp;lt;/PARENTNODE&amp;gt;
                          &amp;lt;KEY8&amp;gt;&amp;lt;![CDATA[some image not visible]]&amp;gt;&amp;lt;/KEY8&amp;gt;
                          &amp;lt;KEY9&amp;gt;N&amp;lt;/KEY9&amp;gt;
                          &amp;lt;KEY10&amp;gt;15&amp;lt;/KEY10&amp;gt;
                  &amp;lt;/NetworkResponseInfo&amp;gt;
              &amp;lt;/Network_Info&amp;gt;
          &amp;lt;/Network_List&amp;gt;
          &amp;lt;response_message_list transaction_status_code="000" transaction_status_text="Successful"/&amp;gt;
      &amp;lt;/Network&amp;gt;&lt;/NetworkResult&gt;&lt;/NetworkResponse&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;]]&gt;&lt;/RESPONSE&gt;&lt;/SOURCE&gt;
  </code></pre>
  
  <p><strong>Output XML</strong></p>
  
  <pre><code>                &lt;ns3:NetworkResponse&gt;
                              &lt;Networks_OF_List&gt;
                                  &lt;NetCharSeq&gt;
                                      &lt;Nrep&gt;
                                          &lt;type&gt;Some Image&lt;/type&gt;
                                          &lt;data&gt;  Data Coming from KEY8 CDATA section&lt;/data&gt;
                                      &lt;/Nrep&gt;
                                      &lt;Nrep&gt;
                                          &lt;type&gt;ANYTHING&lt;/type&gt;
                                          &lt;data&gt;VALUE INSIDE SIM CDATA&lt;/data&gt;
                                      &lt;/Nrep&gt;
                                      &lt;NetDetail&gt;
                                          &lt;MYKEY1&gt;Value present inside KEY4&lt;/MYKEY1&gt;
                                          &lt;MYKEY2&gt;Value present inside KEY5&lt;/MYKEY2&gt;
                                      &lt;/NetDetail&gt;
                                      &lt;SystemID&gt;Value of KEY2&lt;/SystemID&gt;
                                      &lt;SystemPath&gt;Valuelue of KEY3&lt;/SystemPath&gt;
                                  &lt;/NetCharSeq&gt;
                              &lt;/Networks_OF_List&gt;
                          &lt;/ns3:NetworkResponse&gt;
  </code></pre>