如何在Spring集成中提取多节点XML

时间:2014-08-07 12:21:01

标签: xpath spring-integration

可能有人指出我如何提取多节点xml的任何例子,我有下面的示例示例,它可以有多个节点

<?xml version="1.0" encoding="UTF-8"?>
<m1:GetBankDetails xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m1="xxxx">
<ns1:PARAMS>
    <m1:ID/>
    <m1:CHECK_NUM>00000294</m1:CHECK_NUM>
    <m1:VENDOR_NAME>America</m1:VENDOR_NAME>
    <m1:COUNTRY>US</m1:COUNTRY>
    <m1:CURRENCY>USD</m1:CURRENCY>
    <m1:PAYMENT_AMOUNT>10000.0</m1:PAYMENT_AMOUNT>
    <m1:CHECK_STATUS>O</m1:CHECK_STATUS>
    <m1:BANK_ACC_NAME>Bank Of America</m1:BANK_ACC_NAME>
    <m1:BANK_ACC_NUM>3359327056</m1:BANK_ACC_NUM>
</ns1:PARAMS>
<ns1:PARAMS>
    <m1:ID/>
    <m1:CHECK_NUM>000002</m1:CHECK_NUM>
    <m1:VENDOR_NAME>China</m1:VENDOR_NAME>
    <m1:COUNTRY>US</m1:COUNTRY>
    <m1:CURRENCY>USD</m1:CURRENCY>
    <m1:PAYMENT_AMOUNT>10000.0</m1:PAYMENT_AMOUNT>
    <m1:CHECK_STATUS>O</m1:CHECK_STATUS>
    <m1:BANK_ACC_NAME>Bank Of China</m1:BANK_ACC_NAME>
    <m1:BANK_ACC_NUM>3359327056</m1:BANK_ACC_NUM>
</ns1:PARAMS>
</m1:GetBankDetails>

非常感谢任何有关示例代码的帮助

0 个答案:

没有答案