cancel
Showing results for 
Search instead for 
Did you mean: 

adding a default text in the output file between the two fields

Former Member
0 Kudos

question1) can I output the file in .xml format to receiver system from XI?

2) The output file needs some default text in between the fields

this is the deafult text

<level depth="1" name="corp"/>

<level depth="2" name="2"/>

<level depth="3" name="3"/>

<level depth="4" name="4"/>

<level depth="5" name="5"/>

<level depth="6" name="6"/>

<level depth="7" name="7"/>

<abc code="test" isabcd="false" name="test">

<level depth="1" name="corp"/>

<level depth="2" name=""/>

<level depth="3" name="3"/>

<level depth="4" name="4"/>

<level depth="5" name="5"/>

<level depth="6" name="6"/>

<level depth="7" name="7"/>

<objectAssociation associationType="Any Unit" object="eeeee"/>

name is the field name before the text

objectAssociation associationType & object are field names after the text.

Let me know ur thoughts please.

Edited by: Naga V Akkapeddi on Jun 17, 2008 9:01 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes.. you can create it.

depth=1,2... , 3 is contant or you want to increment using mappings.

Gaurav Jain

Reward points if answer is helpful

Former Member
0 Kudos

i have achieved it using Constant, but wondering can I write java coding to create the structure

Also please confirm can I output the .xml to receiver system using FTP adapter without using File content Conversion?

Former Member
0 Kudos

Hi,

Yes, it will work with FTP Adapter as well without using FCC.By default all the formats will be xml. If you want to change the format to plain text or any other format , then you have to go for FCC or Adpater Module.

Reward points if find useful

Thanks

Amit

Former Member
0 Kudos

Earlier I have mentioned if I add predefined xml text it is working in sandbox, later I have found that it is not working as required.

I have my receiver side data strcture like this

<name>

<ObjectAssociationtype>

I have tried to use constant with the value of Name and used Concat function,, later I have realised that it is considering as value

I want to append this default text between name and objectassociationtype fields.

<level depth="1" name="corp"/>

<level depth="2" name="2"/>

<level depth="3" name="3"/>

<level depth="4" name="4"/>

<level depth="5" name="5"/>

<level depth="6" name="6"/>

<level depth="7" name="7"/>

Let me your thoughts please.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Answer 1: Yes you can have the .xml file as Output.

Answer 2. Create the attributes you want to have and hardcode the value with constants in mapping. You will get the desired output.

Thanks

Amit

Reward points if answer is useful

Former Member
0 Kudos

Yes i did try adding constants in sandbox

it is working

Can someone tell hoe to out ut the file .xml fomrat, shud I use FTP adapter without FCC.

Is that fine?

Will it the output the structure of payload with data in it.