【问题标题】:How to split a xml in Mule using splitter如何使用拆分器在 Mule 中拆分 xml
【发布时间】:2014-04-10 22:27:16
【问题描述】:

我是 mule 新手...我有一个 xml 作为有效负载:-

<com.test.services.schema.maindata.v1.DataRequest>
  <id>21</id>
  <name>a </name>
  <age>23</age>
  <designation>gfgf</designation>
</com.test.services.schema.maindata.v1.DataRequest>

现在我想提取每个值并插入数据库...如何拆分每个值? 我需要使用分离器吗?

【问题讨论】:

    标签: xml soap xpath mule mule-studio


    【解决方案1】:

    我假设您不想将此 XML 实体反序列化为对象。

    然后最好在 JDBC 出站端点查询中使用 xpath MEL XPath 表达式。

    MEL Xpath 文档:http://www.mulesoft.org/documentation/display/current/Mule+Expression+Language+Reference#MuleExpressionLanguageReference-XpathandRegex

    显示查询中旧式表达式的 JDBC 出站端点文档:http://www.mulesoft.org/documentation/display/current/JDBC+Transport+Reference#JDBCTransportReference-BasicInsert/Update/DeleteStatements

    只需使用 MEL 而不是 MuleSoft 文档显示的旧样式。

    【讨论】:

      猜你喜欢
      • 2016-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-26
      • 2018-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多