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: Parse Exception while registering node types
Date Wed, 02 May 2007 11:43:38 GMT

On 5/2/07, Kalyan Sarkar <kalyansarkar108@yahoo.co.in> wrote:
> I have programmatically registered the namespace 'repro' before this code
> fragment.
> The interesting part is that when I register the nodetypes through
> JackrabbitNodetypeManager I dont get the exception. For e.g.
> NodeTypeManagerImpl manager = (NodeTypeManagerImpl) ws.getNodeTypeManager();
> manager.registerNodeTypes(in, NodeTypeManagerImpl.TEXT_X_JCR_CND);
> Can anybody tell me what am I missing.

The NodeTypeManagerImpl class automatically makes all the registered
namespaces available to the CND parsers. If you instantiate the parser
directly, you need to explicitly add the namespaces you use. In any
case it's a good idea to include all namespace mappings in the CND


Jukka Zitting

View raw message