Namespaces ns = new Namespaces("c", "http://acme.com/cheese")
.add("xsd", "http://www.w3.org/2001/XMLSchema");
// now lets create an xpath based Message Filter
from("direct:start").
filter(ns.xpath("/c:person[@name='James']", String.class)).
to("mock:result");
// END SNIPPET: example
}
};
}