# Formatting textField populated from XML

**URL:** <https://forum.kirupa.com/t/formatting-textfield-populated-from-xml/288368>\
**Category:** flash\
**Created:** [May 14, 2009, 8:15pm UTC](https://forum.kirupa.com/t/formatting-textfield-populated-from-xml/288368 "2009-05-14T20:15:31Z")\
**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 14, 2009, 8:15pm UTC](https://forum.kirupa.com/t/formatting-textfield-populated-from-xml/288368/1 "2009-05-14T20:15:31Z")

</div>

I am populating the text of text fields with data from an XML file. I would like to do two things.  
The code looks like this:

```php
DSGbox.textFirstName.htmlText = xmlDSG.name.first;
    DSGbox.textLastName.htmlText = xmlDSG.name.last;

```

[LIST]  
[_]First, I would like to format the text… bold, font size, etc…  
[_]Second, I would like to concatenate the first and last name to appear on the same line without space in between caused by two text fields. I tried the following, but it didn’t work.  
[/LIST]

```php
DSGbox.textFirstName.htmlText = xmlDSG.name.first + xmlDSG.name.last;

```
