Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > How to map one field to one of many fields dependent of values in the input file
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 28th April 14:19
magnus eek
External User
 
Posts: 1
Default How to map one field to one of many fields dependent of values in the input file


Hi there !

I have an input-XML that contains one tag with two
attibutes.
It look like this.

<InputXML>
<TESTTAG Code="A" Value="Value" />
</InputXML>


The Code could be A or B


The output-XML contains two tags with one attribute each.

<OutputXML>
<ATAG Value="Value" />
<BTAG Value="Value" />
</OutputXML>

Dependent of the Code (A or B) the i want the output-XMl
to contain either ATAG or BTaG with the corresponding
value.

<OutputXML>
<ATAG Value="Value" />
</OutputXML>

or

<OutputXML>
<BTAG Value="Value" />
</OutputXML>

I have no problems to get the value to the right tag (I
use a "Equal" and "ValueMapping" functiod fore each code).
The problem is to get rid of the tag with no value.

The result I get is.

<OutputXML>
<ATAG Value="Value" />
<BTAG />
</OutputXML>


Does anyone know how to get rid of the BTAG ??????

/ Magnus Eek
  Reply With Quote


  sponsored links


2 28th April 14:19
tanbn
External User
 
Posts: 1
Default How to map one field to one of many fields dependent of values in the input file


Magnus,

Link the Equal functoids to their respective destination field. If the
output of the Equal functoid is false then the field won't get created.

Regards,
Tan Nguyen
Microsoft BizTalk Server

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------


in the input file
  Reply With Quote
3 7th May 19:42
magnus
External User
 
Posts: 1
Default How to map one field to one of many fields dependent of values in the input file


Thank you !

It works


field. If the

won't get created.


confers no rights.


<anonymous@discussions.microsoft.com>

<anonymous@discussions.microsoft.com>

dependent of values

V5.50.4910.0300

microsoft.public.biztalk.tools:4064


each.

XMl


(I

code).
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666