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