|
Home > Archive > BizTalk Server Tools > October 2004 > How to map one field to one of many fields dependent of values in the input file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to map one field to one of many fields dependent of values in the input file
|
|
| Magnus Eek 2004-10-18, 2:50 am |
| 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
| |
| Tan Bao Nguyen 2004-10-21, 5:50 pm |
| 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.
--------------------[vbcol=seagreen]
in the input file[vbcol=seagreen]
| |
| Magnus 2004-10-22, 2:46 am |
| Thank you !
It works
>-----Original Message-----
>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.
>
>--------------------
<anonymous@discussions.microsoft.com>[vbcol=seagreen]
<anonymous@discussions.microsoft.com>[vbcol=seagreen]
dependent of values[vbcol=seagreen]
>in the input file
V5.50.4910.0300[vbcol=seagreen]
microsoft.public.biztalk.tools:4064[vbcol=seagreen]
each.[vbcol=seagreen]
XMl[vbcol=seagreen]
(I[vbcol=seagreen]
code).[vbcol=seagreen]
>
>.
>
|
|
|
|
|