Tuesday, June 7, 2011

If you want to manipulate XML in a XQuery as a string, and then return it to OSB as an element, you need to explicitly convert it to an XMLObject using fn-bea:inlinedXML().
Make sure that your XML string is self sufficient, with all the namespace declaration, because inlinedXML() cannot access the globally declared namespaces (even those internal to OSB, like ctx).