首页 > 解决方案 > 如何将多个重复节点连接成一个节点 - BizTalk

问题描述

我在输入 XML 中有类似的东西

  <OrderText>
    <text_type>0012</text_type>
    <text_content>Text1</text_content>
  </OrderText>
  <OrderText>
    <text_type>ZT03</text_type>
    <text_content>Text2</text_content>
  </OrderText>

连接为以下架构后我需要映射的上述数据

<Order>
    <Note>0012:Text1#ZT03:Text2</Note>
</Order>

有人可以帮忙吗?

标签: dictionaryconcatenationbiztalk

解决方案


您可以在映射中使用Value-Mapping Flattening functoid,然后将每个结果输入 Concatenate functoid 以生成结果字符串。该映射可以在端口或编排中执行。


推荐阅读