5 messages in org.apache.jackrabbit.usersRe: Get XML back in its original form
FromSent OnAttachments
Karianne BergMay 26, 2008 4:51 pm 
Alexander KlimetschekMay 27, 2008 2:21 am 
Karianne BergMay 27, 2008 3:13 am 
Jukka ZittingMay 27, 2008 3:20 am 
Karianne BergMay 30, 2008 7:22 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Get XML back in its original formActions...
From:Alexander Klimetschek (akli@day.com)
Date:May 27, 2008 2:21:35 am
List:org.apache.jackrabbit.users

Hi,

there is no way to tell the API to exclude the jcr:primaryType attribute. Apart from using an XSLT transformation, you could also write a ContentHandler that wraps another one (the one you are using now) and overwrite the startElement() method to exclude the jcr:primaryType attribute.

Regards, Alex

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

Hello list,

I use Jackrabbit mainly to store XML data, and use the session.importXML(...)
and session.exportDocumentView(...) to get my XML in and out of the repository.
However, when I export my XML data using exportDocumentView, all the XML tags
have the attribute jcr:primaryType="nt:unstructured". Is there any way to export
the XML without the extra attributes, or do I have to run an XSLT transformation
that removes them after I've exported the XML?

Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<

Xing: http://www.xing.com/go/invite/3268380.32d2d4 LinkedIn: http://www.linkedin.com/in/klimetschek Blog: http://weblogs.goshaky.com/weblogs/alexkli/