How to give spaces(gap between lines) for Text while writing to XML nodes

Hi All,

We have a task like we need to write text message to existing XML node.

Our XMl is in below format

<?xml version="1.0"?>

 

Now what we need to do is we need to write below text b/w lines as it is(with spaces between each line) in the node  in

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

Hi All,

Welcome to our team.

Regards,
Team

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

 

 

For that what we are doing is we are Using Edit XML File Action , we had given correct XPath and in the New Value we are giving our required text(as mentioned above)

We had tried 3 different options provided there for New Value like Treat new value as text,Preserve white space,insert value as CDATA but while writing to XML it is writing as below

 

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

Hi All,Welcome to our team.Regards,Team

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

 

Means it is not taking spaces betwenn lines ,but we want it to write as it is to XML.

Please provide some help regarding this.

One more case :

We have a varaible %history% which has 4 lines of data.When writing to XML using same steps as above ,that variable value is also not written properly, it is writing as a single line.

 

Please help us in the two tasks mentioned above.

 

Thanks

 

 

I also has a similar task as mentioned above . Can some one help me.

I'm not able to reproduce this here. I have attached an example project which show it working with FB7.