【发布时间】:2021-08-28 09:14:20
【问题描述】:
我想在包含值的 xml 命名空间上使用选择。
<Document xmlns="www.ddd.test.123.001">
<properties>...
</Document>
骆驼:
from("direct:in")
.choice()
.when().xpath("/Document[@xmlns, contains(., 'test.123')]")
.to("mock:pain:001")
xmlns 包含我想使用的路由值。 有可能吗?正确的骆驼 XPath 字符串是什么?
【问题讨论】:
标签: xml xpath apache-camel