Integrating Integrators – BizTalk, Windows Azure, Windows Workflow, and Beyond

How to check if element exists or not in Mapping

BizTalk 2006

This group is for all content related to BizTalk Server 2006. This includes a forum, samples, videos, labs, and tools. Most of the content here also applies to other versions of BizTalk beyond 2006.

How to check if element exists or not in Mapping

Not Answered This question is not answered

I have an XML where one of the element is optional it may occur or it may not. In case if i check for the element using IsExistence functiod and if the element is present i dont see any issue. In case if the element does not exist the IsExistence does not return false so how can i do this . so that when there is not element i need to map another element to the destination.  I need to do this in the  Mapping. Any advice

Edit
All Replies
  • Test.zip

    You can do this way...

    Use a Logical String Functoid.. which will return true / false based on whether the node exists or not..

    Connect the output of this to a Value Mapping Flattening Functoid...

    Negate the Output of Logical String Functoid and Connect to another Value Mapping Flattening Functoid.. See the attached image file...


    - Shiv
    http://masteringbiztalkserver.wordpress.com/
    Edit
Page 1 of 1 (2 items)