export function produces not well formed document
Sedna is a native full-featured XML database management system.
Brought to you by:
mozinsur,
shcheklein
I believe this document is not well formed. Empty documents (as well as documents with multiple roots) are allowed by XQuery data model but could not be properly serialized into well formed document.
Still, this is bug and should be fixed.
Workaround: don't use empty and multiple rooted documents.
I agree. This document had been only created in the database (via CREATE DOCUMENT) and had not been changed.
I have missed a note in the manual "se_exp utility doesn’t support exporting [...] empty documents".
In general, may be the export function should use special method for serialize the documents with no root or multiple roots.
I think, a some warning about such special cases from 'export' will be a good quick solution.