[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

camel XPATH variable to XQuery element() convert problem

In Apache camel I need to extract a xml element and pass it to xquery as
element(), but i have strange error. Any idea and suggesions are more than

Camel code:

.setHeader("CMDRequest",  XPathBuilder.xpath("//*[local-name() =

Xquery code:

declare variable $in.headers.CMDRequest as element() external ;


Caused by: net.sf.saxon.trans.XPathException: Required item type of value
of variable $in.headers.GetDeltaCustomerRequest is element(); supplied
value has item type Q{http://saxon.sf.net/java-type

xquery <https://stackoverflow.com/questions/tagged/xquery>

Or equivalent java type for xquery element() ?