Menu

#79 export function produces not well formed document

open
3
2014-08-18
2011-10-19
ruvim
No

Sedna version="3.5" build="60". OS Windows 2008 Server.

Output of the se_exp restore log:
RESTORING DATA (path=/temp/sedna.backup/test/ host=localhost database=test)

ERROR: failed to execute query:

declare boundary-space preserve; LOAD "4.xml" "page"

Details:

SEDNA Message: ERROR SE2005
Parse error at
Details: line 1:
no element found

RESTORING FAILED

The 4.xml file contains only the xml declaration:

The corresponded document in the database had been empty.

Discussion

  • Ivan Shcheklein

    Ivan Shcheklein - 2011-10-19

    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.

     
  • ruvim

    ruvim - 2011-10-19

    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.

     
  • ruvim

    ruvim - 2011-10-19

    I think, a some warning about such special cases from 'export' will be a good quick solution.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB