I am using something like
let $x :=
"<root>
<parent1>value1</parent1>
<parent2>value2</parent2>
</root>"
...
and converting the XML document to string. I wanted to pass an xml output from a function to another function as a string and not by hard coding it as I'm doing it right now.
I tried using fn:string, but that doesn't pick up the xml tags as string.