3 Replies Latest reply on Dec 10, 2010 11:21 AM by Chris Smith

    Using XQuery with a Splitter

    Chris Smith Newbie

      I currently have a splitter within one of my Camel flows that uses an xpath expression to split message, but I would like to change this to use xquery. However, when I attempt to use an xquery expression within a splitter I get the following error:

       

      org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.

       

      According to the documentation for the xquery component, this error can appear if a result type for the xquery expression is not specified, but I'm not sure what the correct result type would be for a splitter.

       

      Any help is appreciated; I can also post a simple example of the expression I'm using if necessary. Thanks in advance.