映射重复记录中的第一个有效记录 [英] Map the first valid record from a repeated record

查看:71
本文介绍了映射重复记录中的第一个有效记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一条带有重复记录的xml邮件(部分)


< sections>


< section>


< name> blablabla< / name>


< field1> a< / field1> ;


< field2> b< / field2>


< / section>


<部分>


< name> blablabla< / name>


< field1> c< / field1>


< field2> d< / field2>


< / section>


< / sections>



我想循环遍历所有部分并映射仅具有field1 = c值的部分并忽略其他部分



因此输出应为



< sections>


< section>


< name> blablabla< / name>


< field1> c< / field1>


< field2> d< / field2>


< / section>



< / sections>



之前有人遇到过这种情况吗?我不想使用自定义xslt。我可以用 来实现这个目标吗?一个循环的functoid和值映射functoid?



问候




问候,Mazin - MCTS BizTalk Server 2006

解决方案



你可以通过使用EQUAL&值映射(Flattening)functoids。



Hi,

I have an xml message with a repeated record (section)

<sections>

<section>

<name>blablabla</name>

<field1>a</field1>

<field2>b</field2>

</section>

<section>

<name>blablabla</name>

<field1>c</field1>

<field2>d</field2>

</section>

</sections>

I want to loop through all sections and map the section which has the value of field1 =c only and ignore the other sections

so output should be

<sections>

<section>

<name>blablabla</name>

<field1>c</field1>

<field2>d</field2>

</section>

</sections>

Anyone have faced this scenario before? i prefer not to use custom xslt. can i achieve this with  a looping functoid and value mapping functoid?

regards


Regards, Mazin - MCTS BizTalk Server 2006

解决方案

Hi,

You can achieve this by using EQUAL & Value Mapping (Flattening) functoids.


这篇关于映射重复记录中的第一个有效记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆