Java Mule-ESB:xml-to-maps转换器生成空的hashmaps

Java Mule-ESB:xml-to-maps转换器生成空的hashmaps,java,xml,mule,transformation,esb,Java,Xml,Mule,Transformation,Esb,我的流程的配置是: <flow name="addVendors" doc:name="addVendors"> <file:inbound-endpoint path="/ws/esb/vendors/input/" moveToDirectory="/ws/esb/vendors/processed/" responseTimeout="10000" doc:name="File"/> <file:file-to-string-t

我的流程的配置是:

<flow name="addVendors" doc:name="addVendors">
        <file:inbound-endpoint path="/ws/esb/vendors/input/" moveToDirectory="/ws/esb/vendors/processed/" responseTimeout="10000" doc:name="File"/>
        <file:file-to-string-transformer mimeType="text/xml" doc:name="File to String"/>
        <jdbc-ee:xml-to-maps-transformer encoding="UTF-8" mimeType="text/xml" doc:name="XML to Maps"/>
        <component class="com.myapp.integration.VendorsHelper" doc:name="Java"/>
        <file:outbound-endpoint path="/ws/esb/vendors/output" responseTimeout="10000" doc:name="File"/>
    </flow>

我正在尝试发送以下xml:

<?xml version="1.0"?>
<book>
        <note id="1">
            note1
            <to>Tove</to>
            <from>Jani</from>
            <heading>Reminder</heading>
            <body>Don't forget me this weekend!</body>
            <author>Some author</author>
        </note>
        <note id="2">
            note2
            <to>Mark</to>
            <from>Smith</from>
            <heading>Invitation</heading>
            <body>Invitation for birthday!</body>
            <author>Some author</author>
        </note>
</book>

注1
托弗
贾尼
提醒
这个周末别忘了我!
某作者
注2
做记号
史密斯
邀请
生日请柬!
某作者
问题是,在xml-to-maps转换之后,我得到了两个空的HashMap。我的代码中有什么不正确?如何调试它?

如中所述,由
XML转换为map
转换器的XML必须符合特定的模式(在文档中提供)

以下是一个有效XML文档的示例:

<table>
  <record>
    <field name="id" type="java.math.BigDecimal">0</field>
    <field name="name" type="java.lang.String">hello</field>
  </record>
</table>

0
你好

因此,您需要使用XSL-T转换器将XML转换为预期的XML格式,然后才能使用转换器。

Yep,这些就是JDBC使用的一些数据类型