# XML and CSS

**URL:** <https://forum.kirupa.com/t/xml-and-css/275526>\
**Category:** Uncategorized\
**Created:** [November 14, 2008, 11:05pm UTC](https://forum.kirupa.com/t/xml-and-css/275526 "2008-11-14T23:05:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carevic](https://avatars.discourse-cdn.com/v4/letter/c/3da27b/32.png) [@carevic](https://forum.kirupa.com/u/carevic)\
**Post date:** [November 14, 2008, 11:05pm UTC](https://forum.kirupa.com/t/xml-and-css/275526/1 "2008-11-14T23:05:44Z")

</div>

Hello flashers 🙂

I’ve loaded xml into text field and I want to assign CSS style with it…  
I know I can load whole XML into one text field and than assign css to it but what i am doing is to load titles into title tf, than content into content tf, like this

```auto
title._tf.htmlText = titlesArray[0]
content_tf.htmlText =contentArray[1]

```

First I parse XML into array than load partial text into tf.  
CSS is like:

```auto
p { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#0000FF; }
.title { font-size:14px; font-weight:bold; }
.content { color:#000099; text-decoration:underline; }

```

XML is:

```auto

Some text Some text Some text Some text[code/]

P.S. Sorry for multiple submits, let moderator delete the rest... :( this forum seams to not allow opening or closing tags within XML

XML is regular with title and content tags...
```
