cancel
Showing results for 
Search instead for 
Did you mean: 

To get XML Content

Former Member
0 Kudos

<p>Hi all,</p>

  <p> I am having XML like this,

<LDATA>

<item>

<LINE>008:00000010,005:James,004:Bond,008:00000000,

</LINE>

</item>

<item>

<LINE>

010:01.01.2003,001:0;008:00000072;

</LINE>

</item>

</LDATA>

target XML is,

<LDATA>

<item>

<LINE>

008:00000010,005:James,004:Bond,008:00000000,010:01.01.2003,001:0;008:00000072;

</LINE>

</item>

</LDATA>

i.e., to combine both <LINE> tags to single. How to do this? Could anyone pls explain me?</p>

<p>Thanks in Advance</p>

Accepted Solutions (1)

Accepted Solutions (1)

aravinth_anandhan
Active Participant
0 Kudos

Hi,

Using repeater, get your LINE node to a single String variable and assign back to a XML structure.

Regards,

Aravinth

Former Member
0 Kudos

Hi,

   Thanks for the reply. Could you pls explain me? I cant get you, how to get single string variable? I am getting only the last value(LINE). If I try to assign back to XML structure, it showing some error. Am I wrong? Pls help me.

Thanks.

aravinth_anandhan
Active Participant
0 Kudos

Hi,

1. Create a local string variable.

2. Map your line node of XML structure to Repeater.

3. Add one Assignment action block under Repeater.

4. Now concatenate the Repeater output into a Local string variable.

Now in local string variable, concatenated value of your Line node will be there.

Regards,

Aravinth

aravinth_anandhan
Active Participant
0 Kudos

Hi,

Refer this thread

http://scn.sap.com/thread/2149973

Regards,

Aravinth

Former Member
0 Kudos

Hi,

  Yes, Aravinth thank you so much.I got it.

Thanks.

aravinth_anandhan
Active Participant
0 Kudos

Hi,

Please close this thread if answered.

Regards,

Aravinth

Answers (0)