Sometime it is required to convert XML string into XML document. OSB allows us to convert XML String to XML document using OSB inbuilt function.

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:

Let’s run the example and see the output:
That’s it !!