Hi,<br><br>How to create an xml fragment whose root name is dynamic? The following code is false, of course.<br><br>let $a := <a>bbb</a><br>let $r := $a/text()<br>return<br><{$r}>something</{$r}><br>
<br>With namespace?<br><br>return<br><{QName("<a href="http://aaa">http://aaa</a>",concat($prefix,":",$r))}/><br><br>Are there any methods to do this?<br><br>Thanks,<br>Lei<br><br>