Hi Yeah sure we can add that option to the xpath definition so its available in XML DSL. Feel free to log a JIRA http://camel.apache.org/support
On Fri, Dec 12, 2014 at 8:39 AM, Siano, Stephan <stephan.si...@sap.com> wrote: > Hi, > > in Java DSL it is possible to set the documentType on an XPath expression or > predicate (that's the type the document is converted to before applying the > XPath, not the result type) e.g.: > > from("file://target/file/xpathsplit") > // set documentType to org.xml.sax.InputSource then Camel > will use SAX to split the file > > .split(xpath("/persons/person").documentType(InputSource.class)).streaming() > .to("mock:splitted"); > > Is this also possible form XML DSL (Spring/Blueprint)? > > If not, wouldn't it be a useful feature in some cases (e.g. when using saxon > as the XPath parser)? > > Best regards > Stephan > > -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/