Shitfy
Shitfy

Reputation: 95

Setting xml to body

is it possible to set body as xml? for example

<setBody>
   <xml>
      <root>
         <subRoot> </subRoot>
      </root>
   </xml>
</setBody>

I don't want to get it as string but as org.w3c.dom.Document

Upvotes: 0

Views: 554

Answers (1)

Screwtape
Screwtape

Reputation: 1367

I think you need a <constant> tag surrounding your XML, and you may need to enclose your XML body in a <![CDATA[ ... ]]> tag - it may not care if it is within a constant.

If this returns a string, then just convert it to a document with <convertBodyTo type="org.w3c.dom.Document" /> following the setBody tags.

Upvotes: 2

Related Questions