5 messages in org.apache.jackrabbit.usersRe: Get XML back in its original form
FromSent OnAttachments
Karianne Berg26 May 2008 16:51 
Alexander Klimetschek27 May 2008 02:21 
Karianne Berg27 May 2008 03:13 
Jukka Zitting27 May 2008 03:20 
Karianne Berg30 May 2008 07:22 
Subject:Re: Get XML back in its original form
From:Jukka Zitting (jukk@gmail.com)
Date:05/27/2008 03:20:54 AM
List:org.apache.jackrabbit.users

Hi,

On Tue, May 27, 2008 at 1:14 PM, Karianne Berg <kei@start.no> wrote:

Thank you for your reply. Is there a particular reason why this is not possible?

A JCR content repository like Jackrabbit is not an XML database.

When I work with XML data that is not tied up to JCR in any way, I would like to get the same thing out as I put in.

If you need to store XML documents as-is (as opposed to an abstract content model that's just serialized to XML), then I would recommend storing the XML as a binary property, preferably inside a nt:file/nt:resource structure.

BR,