jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: can't Import a system view using ImportXML
Date Wed, 09 Aug 2006 09:44:06 GMT
On 8/8/06, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> Hi,
>
> On 8/8/06, Nicolas <ntoper@gmail.com> 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/ - info@yukatan.fi
> Software craftsmanship, JCR consulting, and Java development
>

Mime
View raw message