# Importing XML data and a carriage return (new line) into dynamic text field

**URL:** <https://forum.kirupa.com/t/importing-xml-data-and-a-carriage-return-new-line-into-dynamic-text-field/156970>\
**Category:** flash\
**Created:** [July 29, 2005, 4:38am UTC](https://forum.kirupa.com/t/importing-xml-data-and-a-carriage-return-new-line-into-dynamic-text-field/156970 "2005-07-29T04:38:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amy\_Saunders](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Amy\_Saunders](https://forum.kirupa.com/u/Amy_Saunders)\
**Post date:** [July 29, 2005, 4:38am UTC](https://forum.kirupa.com/t/importing-xml-data-and-a-carriage-return-new-line-into-dynamic-text-field/156970/1 "2005-07-29T04:38:04Z")

</div>

I recently read the great tutorial on importing XML into Flash at [http://www.kirupa.com/developer/actionscript/xmldataflash5.htm](http://www.kirupa.com/developer/actionscript/xmldataflash5.htm).

I am wondering if anyone knows a way to add a carriage return (a new line) at a certain point inside one single XML element (ie. something like: \<abc\> line one ??? line two \</abc\>. The one thing I got to work was to make my variable point to one element in the xml, then add + "

" then add text from another element. However this is annoying because for each text box I will have to know exactly how many paragraphs there are so that I can add the right amount of new lines and references to new elements when assigning the dynamic text’s variables value. Any help offered would really be appreciated.
