protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
public void configure() {
// START SNIPPET: example
// lets define the namespaces we'll need in our filters
NamespaceBuilder ns = namespaceContext("c", "http://acme.com/cheese")
.namespace("xsd", "http://www.w3.org/2001/XMLSchema");
from("direct:start").filter(
ns.xpath("/c:person[@name='James']")
).to("mock:result");
// END SNIPPET: example
}
};
}