This content has been marked as final. Show 2 replies
I guess you have two options here :
1) Adding the namespace directly on the textual XML contained in $content/text(), then call fn-bea:inlinedXML.
Assuming BEA's XQuery implementation supports fn:replace function (according to the doc it does) - or an equivalent :
For example, if $content/text() is
fn-bea:inlinedXML( fn:replace($content/text(), '^<([^>]+)>', '<$1 xmlns="default_ns">') )
The result will be :
2) Adding the namespace on the generated instance (i.e. after calling fn-bea:inlinedXML).
<root id="1" xmlns="default_ns"><test>TEST!</test></root>
That's a little bit more complex and will require something like this :
Thank you very much odie. First option worked like a charm!