jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: Importing, and exporting XML. Default namespaces
Date Tue, 18 Jan 2011 13:35:25 GMT
Hi,

On Tue, Jan 18, 2011 at 2:25 PM, Sandor Spruit <sandor@cs.uu.nl> wrote:
> Is there a way to control what prefix Jackrabbit assigns to XML nodes in the
> default namespace?

You can register the namespace before importing your XML content. See
NamespaceRegistry.registerNamespace() [1].

[1] http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/javax/jcr/NamespaceRegistry.html#registerNamespace(java.lang.String,
java.lang.String)

BR,

Jukka Zitting

Mime
View raw message