# XML text problem

**URL:** <https://forum.kirupa.com/t/xml-text-problem/279538>\
**Category:** flash\
**Created:** [January 15, 2009, 8:44pm UTC](https://forum.kirupa.com/t/xml-text-problem/279538 "2009-01-15T20:44:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParanoidAndroid](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@ParanoidAndroid](https://forum.kirupa.com/u/ParanoidAndroid)\
**Post date:** [January 15, 2009, 8:44pm UTC](https://forum.kirupa.com/t/xml-text-problem/279538/1 "2009-01-15T20:44:04Z")

</div>

When you want to have linebreaks in a multiline text in AS you should write this, right?

```
Code:
[LEFT]var mytext:String="This is 

```

what  
I want";[/LEFT]

so you have a 3-line text. ok, so i have a textfield, and its content will be loaded from a xml file. in my xml i have something like this:

```
Code:
[LEFT]&lt;mytext&gt;This is 

```

what  
I want\</mytext\>[/LEFT]

then, when i load the file and assign that node to the .text property of my textfield it doesn’t recognize the linebreaks. I had no trouble loading and working with the rest of the data. i just want to include the linebreaks in the xml, but i don’t know how. i also tried casting the type of variable to string, tried using the toString() method of the xmllist and nothing.

How can i solve this? any ideas??
