title: How to get data I need from CDATA part using R
body: <p>Now I have to get some data I need from a XML file. The data is in the CDATA part which is painful to get.
  The data is in the format as followings:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  -&lt;Calc&gt;
     &lt;MarketData&gt;
        &lt;![CDATA[Interestrate.CHF,Type=,Floor=&lt;undefined&gt;,Currency=CHF,
         curve=[(1,0.1),(2,0.1)...(15,0.1)] Interestrate.EUR,Type=,Floor=&lt;undefined&gt;,
         Currency=EUR,curve=[...] InterestRateVol.CHF,Type=,LongRunMean=0.01,..]]&gt;
     &lt;/MarketData&gt;
     &lt;Calendars&gt;.....
     &lt;/Calendars&gt;
  &lt;/Calc&gt;
  </code></pre>
  
  <p>Like I want to get the curve data of Interestrate.EUR. How should I do it in R?
  Need I have to locate "Interestrate.EUR" first, then grab the data after first "curve".
  Any good suggestion to deal with the CDATA? Or any other language can work out this problem.</p>