Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Need help on How to Not assemble useless incoming data › Need help on How to Not assemble useless incoming data
January 27, 2006 at 6:55 PM
#12713
You can create a map with the same input and output schema
Add a scripting functoid with Script Type = Inline Xslt and copy this code
[code:1:5d60a03c92]<xsl:copy>
<xsl:for-each select=\"*\">
<xsl:if test=\"child::*[position()=2]/text()\">
<xsl:copy-of select=\".\"/>
</xsl:if>
</xsl:for-each>
</xsl:copy>[/code:1:5d60a03c92]
Connect the scripting functoid output to the root node of the destination schema.
The assumption is that field 1 of each record is present and field 2 is missing from the records you wish to remove. If this is not the case you can change the position() value.