validateMessageElements.put("string:namespace-uri(/*)", "http://citrus");
validateMessageElements.put("boolean:contains(/ns1:root/:search-element, 'search')", "true");
validateMessageElements.put("boolean:/ns1:root/:element", "true");
validateMessageElements.put("boolean:/ns1:root/:element-does-not-exist", "false");
PayloadTemplateMessageBuilder controlMessageBuilder = new PayloadTemplateMessageBuilder();
XmlMessageValidationContext validationContext = new XmlMessageValidationContext();
validationContext.setMessageBuilder(controlMessageBuilder);
validationContext.setPathValidationExpressions(validateMessageElements);
validationContext.setSchemaValidation(false);