title: Inserting CData XML parsing Java String
body: <p>I have a java string containing XML. I want to read through this Java String wrap all the text nodes within CData, only I'm not sure how to do this. The reason for doing this is that the is a text node containing an angle bracket which is causing an exception when I try to parse the String. Can any1 help me out?</p>
  
  <pre><code>&lt;node&gt; this &lt; is text &lt;node&gt; &lt;node2&gt; this is &lt; text &lt;node2&gt;
  </code></pre>
  
  <p>I would like to know if there is an easy way of reading this text as a string with XMLReader and inserting CData around the text </p>
  
  <p>thanks</p>
  
  <p>Stefan </p>