Apache camel 在javascript路由中使用驼峰xpath读取xml时出错
我在使用camel-xpath解析xml时遇到问题,我在javascript中有路径Apache camel 在javascript路由中使用驼峰xpath读取xml时出错,apache-camel,Apache Camel,我在使用camel-xpath解析xml时遇到问题,我在javascript中有路径 .filter().xpath("IntuitResponse//xsd2:id") ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): javax.xml.transform.TransformerException: Prefix must resolve to
.filter().xpath("IntuitResponse//xsd2:id")
ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): javax.xml.transform.TransformerException: Prefix must resolve to a namespace: soapenv
如何传递名称空间,下面是尝试读取id的示例xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IntuitResponse xmlns="http://schema.intuit.com/finance/v3"
time="2016-10-14T10:48:39.109-07:00">
<QueryResponse startPosition="1" maxResults="79" totalCount="79">
<Bill domain="QBO" sparse="false">
<xsd2:id>1</xsd2:id>
</Bill>
</QueryResponse>
</IntuitResponse>
1.