You can use the fn-bea:inlinedXML function if you need to represent an XML string into XML document.
The function has the following signature:
fn-bea:inlinedXML($input as xs:string)
Let’s see the example:
Suppose you have an variable called xmlstring in the OSB that contained XML string and you want to convert the same into XML document, then you can use the following expression in Assign activity: