XQuery:“您必须遵守《全国人大常委会关于维护互联网安全的决定》及中华人民共和国其他有关法律法规。”;toString方法“;包括要素

XQuery:“您必须遵守《全国人大常委会关于维护互联网安全的决定》及中华人民共和国其他有关法律法规。”;toString方法“;包括要素,xquery,Xquery,以下xQuery生成以下结果: for $i in db:open('foo')/bar return $i/geo 结果: <geo type="null"/> <geo type="null"/> <geo type="object"> <type>Point</type> <coordinates type="array"> <value type="number">41.005

以下xQuery生成以下结果:

for $i in db:open('foo')/bar
return $i/geo 
结果:

<geo type="null"/>
<geo type="null"/>
<geo type="object">
   <type>Point</type>
   <coordinates type="array">
      <value type="number">41.00502344</value>
      <value type="number">29.05639393</value>
   </coordinates>
</geo>
“问题”是,concat方法以及其他一些“toString”方法删除了标记,结果如下所示:

some text  some text  some text Point41.0050234429.05639393
some text <geo type="null"/>  some text <geo type="null"/> some text <geo type="object"> <type>Point</type> <coordinates type="array"> <value type="number">41.00502344</value> <value type="number">29.05639393</value> </coordinates></geo> ... 
我希望得到如下结果:

some text  some text  some text Point41.0050234429.05639393
some text <geo type="null"/>  some text <geo type="null"/> some text <geo type="object"> <type>Point</type> <coordinates type="array"> <value type="number">41.00502344</value> <value type="number">29.05639393</value> </coordinates></geo> ... 
一些文本一些文本一些文本点41.00502344 29.05639393。。。

是否有任何xquery函数可以保存元素的标记和信息?

通过返回包含一些文本和地理元素的序列来替换concat函数调用,即

for $i in db:open('foo')/bar
return ("some text ", $i/geo)