由于性能问题,我试图避免进行 XML 到 JAXB 的转换 - 消息可能相当复杂。
是否可以对未转换为 POJO 的消息使用表达式?
我尝试使用 XML 到 DOM 转换器,但之后在有效负载上使用表达式会导致异常(“No property ... in ...xerces.DocumentImpl”)
Yes. You can use MEL on XML payloads directly without transforming them to POJO.
Examples:
#[xpath('//ns:Employee/ns:LastName').text] returns the Text inside the element <LastName> in your Employee example.
Hope this helps.
Need more help? Post details of the what specificallyyou are looking for.