title: How to pass data to my xml tag that's inside CDATA in Java?
body: <p>my xml is "<strong>req.xml</strong>"</p>
  
  <pre><code>&lt;soapenv:Body&gt;
   &lt;ser:processRequest&gt;
    &lt;!--Optional:--&gt;
    &lt;ser:in0&gt;
     &lt;![CDATA[ &lt;ItemRq&gt; &lt;ItemId&gt; %s &lt;/ItemId&gt; &lt;/ItemRq&gt;]]&gt; &lt;!--Item value in CDATA tag --&gt;
    &lt;/ser:in0&gt;    
   &lt;/ser:processRequest&gt;
  &lt;/soapenv:Body&gt;
  </code></pre>
  
  <p>Without CDATA we can pass Value to ItemId through <code>string.format</code>. But this code is not working while the xml is in the CDATA tag. How can I pass value to <code>ItemId</code> tag that is in the CDATA?</p>
  
  <pre><code>String xml = convertStreamToString(getAssets().open("req.xml"));
  String request = String.format(xml, "2499");  
  </code></pre>