title: Apache Camel: set body with regex pattern in Spring DCL
body: <p>I try to set String body, having cut from it the piece, with the the regular expression, as follows:</p>
  
  <pre><code>&lt;setBody&gt;
    &lt;simple&gt;${body} regex '?(:.xml xsi:type="xsd:string"&gt;(.*[\s\S]*?)..xml&gt;)'&lt;/simple&gt;
  &lt;/setBody&gt;
  </code></pre>
  
  <p>it is compiled normally but started with an error:</p>
  
  <pre><code>org.apache.cxf.interceptor.Fault: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs.
   at [row,col {unknown-source}]: [6,7]
  </code></pre>
  
  <p>also I rty to do this with</p>
  
  <pre><code>&lt;transform&gt; ... &lt;/transform&gt;
  </code></pre>
  
  <p>and the same error appears while running.</p>
  
  <p>Please provide me the simple way to transform the body String in spring DSL by cutting it.</p>
  
  <p>I want to cut xml data from soap plain request:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:SMSServiceControllerwsdl"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;urn:sendMessages soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;
           &lt;xml xsi:type="xsd:string"&gt;
          &lt;?xml version="1.0" encoding="UTF-8"?&gt;
              &lt;Structure&gt;
                  &lt;Array name="messageArray"&gt;
                      &lt;Structure&gt;
                          &lt;Value name="id"&gt;
                              &lt;Type&gt;String&lt;/Type&gt;
                              &lt;Data&gt;ИД СООБЩЕНИЯ 1&lt;/Data&gt;
                          &lt;/Value&gt;
                          &lt;Value name="phone"&gt;
                              &lt;Type&gt;String&lt;/Type&gt;
                              &lt;Data&gt;ТЕЛЕФОН 1&lt;/Data&gt;
                          &lt;/Value&gt;
                          &lt;Value name="text"&gt;
                              &lt;Type&gt;String&lt;/Type&gt;
                              &lt;Data&gt;ТЕКСТ 1&lt;/Data&gt;
                          &lt;/Value&gt;
                      &lt;/Structure&gt;
                      &lt;Structure&gt;
                          &lt;Value name="id"&gt;
                              &lt;Type&gt;String&lt;/Type&gt;
                              &lt;Data&gt;ИД СООБЩЕНИЯ 2&lt;/Data&gt;
                          &lt;/Value&gt;
                          &lt;Value name="phone"&gt;
                              &lt;Type&gt;String&lt;/Type&gt;
                              &lt;Data&gt;ТЕЛЕФОН 2&lt;/Data&gt;
                          &lt;/Value&gt;
                          &lt;Value name="text"&gt;
                              &lt;Type&gt;String&lt;/Type&gt;
                              &lt;Data&gt;ТЕКСТ 2&lt;/Data&gt;
                          &lt;/Value&gt;
                      &lt;/Structure&gt;
                  &lt;/Array&gt;
              &lt;/Structure&gt;         
           &lt;/xml&gt;
           &lt;systemName xsi:type="xsd:string"&gt;awis&lt;/systemName&gt;
        &lt;/urn:sendMessages&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>