title: How to add raw XML text to SOAPBody element
body: <p>I have an XML text that is generated by the application, and I need to wrap a SOAP envelope around it and later make the web service call.</p>
  
  <p>The following code builds up the envelope, but I don't know how the add the existing XML data into the <code>SOAPBody</code> element.</p>
  
  <pre><code>    String rawXml = "&lt;some-data&gt;&lt;some-data-item&gt;1&lt;/some-data-item&gt;&lt;/some-data&gt;";
  
      // Start the API
      MessageFactory mf = MessageFactory.newInstance();
      SOAPMessage request = mf.createMessage();
      SOAPPart part = request.getSOAPPart();
      SOAPEnvelope env = part.getEnvelope();
  
      // Get the body. How do I add the raw xml directly into the body?
      SOAPBody body = env.getBody();
  </code></pre>
  
  <p>I have tried <code>body.addTextNode()</code> but it adds content so <code>&lt;</code> and others get escaped.</p>