# Combining data from 2 XML fields into 1 Text Box

**URL:** https://forum.kirupa.com/t/combining-data-from-2-xml-fields-into-1-text-box/289014
**Category:** flash
**Created:** [May 25, 2009, 7:26am UTC](https://forum.kirupa.com/t/combining-data-from-2-xml-fields-into-1-text-box/289014 "2009-05-25T07:26:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Spykes](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@Spykes](https://forum.kirupa.com/u/Spykes)
#### Post date: [May 25, 2009, 7:26am UTC](https://forum.kirupa.com/t/combining-data-from-2-xml-fields-into-1-text-box/289014/1 "2009-05-25T07:26:16Z")

</div>

I have loaded an XML file and I am populating several text fields with the data. For the first name and last name fields, I would like to combine the data into one field for appearance sake, but for some reason, only the first name data is appearing when I run it. It seems to be truncating the last name. My code looks like this:

```php
Obj.Name.htmlText = xmlFile.name.first + xmlFile.name.last;

```

Do I have some syntax wrong? Is concatenation allowed in AS3?

Thanks
