# XML help!

**URL:** <https://forum.kirupa.com/t/xml-help/218124>\
**Category:** Uncategorized\
**Created:** [March 5, 2007, 9:11am UTC](https://forum.kirupa.com/t/xml-help/218124 "2007-03-05T09:11:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![J11](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@J11](https://forum.kirupa.com/u/J11)\
**Post date:** [March 5, 2007, 9:11am UTC](https://forum.kirupa.com/t/xml-help/218124/1 "2007-03-05T09:11:05Z")

</div>

I am trying to maintain my carriage returns.  
The data is inside a tag (XML) as follows:  
\<tag\>  
line1  
line2  
line3  
\</tag\>

I want to keep the formatting of the data (in the 3 lines) as it is but it goes like this:  
line1 line2 line3

How to maintain the formatting?

EDIT: tried using:  
\<xsl:preserve-space elements="\*"/\> and \<xsl:preserve-space  
\> elements=“cell”/\>  
but this does not work 😑
