title: Preserving the CDATA format with a SAX parser
body: <p>I'm trying to parse an XML file and insert some attributes in my database. I'm developing in JAVA and using SAX to parse the XML file.</p>
  
  <p>My problem is that when I read an attribute in CDATA format I only get what the CDATA contains. Perhaps I wan't to keep the CDATA format?</p>
  
  <p>For example with the XML below :  </p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;Bank&gt;
          &lt;Account type="saving"&gt;
              &lt;Id&gt;1001&lt;/Id&gt;
              &lt;Name&gt;&lt;![CDATA[&lt;Jack&gt; &lt;Robinson&gt;]]&gt;&lt;/Name&gt;
              &lt;Amt&gt;10000&lt;/Amt&gt;
          &lt;/Account&gt;
          &lt;Account type="current"&gt;
              &lt;Id&gt;1002&lt;/Id&gt;
              &lt;Name&gt;Sony Corporation&lt;/Name&gt;
              &lt;Amt&gt;1000000&lt;/Amt&gt;
          &lt;/Account&gt;
      &lt;/Bank&gt;
  </code></pre>
  
  <p>I would like to get the <code>Name</code> and have it like this <code>&lt;![CDATA[&lt;Jack&gt; &lt;Robinson&gt;]]&gt;</code> and not only <code>&lt;Jack&gt; &lt;Robinson&gt;</code> which is what I am getting.</p>
  
  <p>Can anyone help me with this issue please. </p>
  
  <p>PS : Sorry for my English, I'm french.</p>
  
  <p>Best regards,</p>