【发布时间】:2015-01-21 11:38:31
【问题描述】:
我有这样的要求,在根标签“功能”下存在多个功能元素。我需要删除重复项。我已经在源和目标中加载了相应的 xsd。但不确定如何删除重复项。我的 xml 是一个复杂的,但是为了理解,我把这里做得很简单。
来源(输入xml)
<features>
......(other fields)...
<Datas>
<feature> 1</feature>
<feature> 2 </feature>
<feature> 1 </feature>
<feature> 3 </feature>
<feature> 3 </feature>
</Datas>
</features>
目标(输出xml)
<features>
....(other fields)....
<ItemDetails>
<feature> 1</feature>
<feature> 2 </feature>
<feature> 3 </feature>
</ItemDetails>
我在想,对于 DataMapper 中的每个元素都需要做一些事情。但不知道怎么做或者可能是错的
请告诉我是否有任何捷径,脆的方法可以删除重复项。这将大大减少我的时间。 骡版本:3.5.1 提前致谢。
【问题讨论】:
标签: mule mule-studio mule-el mule-component