On 8/8/06, Jukka Zitting <[EMAIL PROTECTED]> wrote:
Hi,

On 8/8/06, Nicolas <[EMAIL PROTECTED]> wrote:
> When I try to import a whole workspace, here is the exception thrown:
> /jcr:root: mandatory child node {http://www.jcp.org/jcr/1.0}system does not
> exist. I don't understand why it happens and how to correct it: the root
> node has children...

It seems that the importer is trying to recreate the root node. We
should probably add special handling of jcr:root in the importer code,
so that importing "<foo/>" and "<jcr:root><foo/></jcr:root>" (or the
equivalent system view) under the root node should both result in the
creation of a "foo" node just below the root node.

i don't agree. that's not how importXML is spec'ed.
note that the JCR importXML methods are not suitable for restoring
system managed data.

cheers
stefan


BR,

Jukka Zitting

--
Yukatan - http://yukatan.fi/ - [EMAIL PROTECTED]
Software craftsmanship, JCR consulting, and Java development

Reply via email to