# New line for XML only works inside of a tag

**URL:** <https://forum.kirupa.com/t/new-line-for-xml-only-works-inside-of-a-tag/323281>\
**Category:** Uncategorized\
**Created:** [June 23, 2011, 2:01pm UTC](https://forum.kirupa.com/t/new-line-for-xml-only-works-inside-of-a-tag/323281 "2011-06-23T14:01:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [June 23, 2011, 2:01pm UTC](https://forum.kirupa.com/t/new-line-for-xml-only-works-inside-of-a-tag/323281/1 "2011-06-23T14:01:34Z")

</div>

If I put the new line “&# 10;” (i know the space is incorrect, needed in this post) inside of a XML node it works fine, outside of all XML nodes it will not work. I would rather not mess around with HTML stuff if possible.  
So in the example below the green works, the red does not work.

Any help would be greatly appreciated.

```auto

var xmlStuff:XML = 

    <entireScenario>
		<mainTitle>{txtMainTitle.text}</mainTitle>
		<startSlide>{txtFirstSlide.text}</startSlide>[COLOR="green"]&# 10;[/COLOR]
    </entireScenario>[COLOR="#8b0000"]&# 10;[/COLOR];

```
