on 06-27-2007 12:41 PM
Hi guys,
While performing mapping between two message types, where my input message type looks like..
<?xml version="1.0" encoding="UTF-8"?>
<DATA>
<FNAME>
<LNAME>
<DATA>
and I'm using both the FNAME and LNAME nodes in the output file.
Here If I'm giving the input file format as...
<?xml version="1.0" encoding="UTF-8"?>
<DATA>
<FNAME>Varun</FNAME>
<DATA>
This is without the LNAME tag...
I want to know, how can I assign a blank value to my output file structure for this particular tag???
I tried using a custom mapping with the code written below, but it didn't work
public String matchFields(String a,Container container){
//write your code here
String output;
if(a""l)
{
output = "";
}
else
{
output = a;
}
return output;
}
Please help me on this guys....Plzzz
Regards
Varun
Hi
Use the standard node function "Exist" and "if" boolean function to achieve what you want
regards
krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Varun,
Your code itself is working perfectly well for your requirements. Can you be more specific about your requirements?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Varun,
Just map it with a CONSTANT ( space ) in standard fun.
Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use it like this if Fname equals constnat[space] then pass the Constant[space] to Fname else value of Fname as under
................................Constant[]------>
FNAME.............................................Then
-
>Equals....................................IF -
>FNAME
Constant[].........................................ELSE
.......................................FNAME---->
Constant[] = Constant [ Space ]
Sachin
I'm sorry
Its a==null in the java code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.