# Using a character in XML file to bold or color or italic certain text text

**URL:** <https://forum.kirupa.com/t/using-a-character-in-xml-file-to-bold-or-color-or-italic-certain-text-text/326979>\
**Category:** flash\
**Created:** [January 27, 2012, 4:30pm UTC](https://forum.kirupa.com/t/using-a-character-in-xml-file-to-bold-or-color-or-italic-certain-text-text/326979 "2012-01-27T16:30:55Z")\
**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:** [January 27, 2012, 4:30pm UTC](https://forum.kirupa.com/t/using-a-character-in-xml-file-to-bold-or-color-or-italic-certain-text-text/326979/1 "2012-01-27T16:30:55Z")

</div>

Hello,

I am using XML file to pass text into a SWF. How can I use styles, either inline or external, to make certain text in the middle of a sentence appear italic or colored or bold, etc. A character or somethinng that you can put right in the XML file.

```auto

<mainText>You have the email message with two domain names: [COLOR=#ff0000]character here [/COLOR]hackistan.edu [COLOR=#FF0000]character here[/COLOR] and &gt;kevinsgym-uoh.co&lt;. Below is a list of resources to discover more information. Match the web site with the type of information you would expect to find.</mainText>

```
