Hi Thomas,
I could reproduce the bug and we'll fix it soon. Your query however
looks a bit strange to me:
Am 21.04.2011 14:31, schrieb Thomas Kaltofen:
> insert node collection('db/docb')/rootB
> after collection('db/doca')/rootA
Your collection looks something like this:
> collection(db)
> |
> |-- document(doca)
> | |
> | `-- <rootA .../>
> |
> `-- document(docb)
> |
> `-- <rootB .../>
Your query doesn't create a new document node (as XQuery Update doesn't
operate on document level) but inserts the <rootB .../> element directly
into the first document, which then has two(!) root elements:
> collection(db)
> |
> |-- document(doca)
> | |
> | |-- <rootA .../>
> | |
> | `-- <rootB .../>
> [...]
That's allowed in XQuery Update, but isn't valid XML any more and I
can't think of a scenario where it's actually desirable.
Is that what you wanted to do? If not, could you explain in more detail
what you intended?
Cheers Leo