# Xml Gallery what else?

**URL:** https://forum.kirupa.com/t/xml-gallery-what-else/185518
**Category:** Uncategorized
**Created:** [April 13, 2006, 9:36pm UTC](https://forum.kirupa.com/t/xml-gallery-what-else/185518 "2006-04-13T21:36:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![awholeuniverse](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@awholeuniverse](https://forum.kirupa.com/u/awholeuniverse)
#### Post date: [April 13, 2006, 9:36pm UTC](https://forum.kirupa.com/t/xml-gallery-what-else/185518/1 "2006-04-13T21:36:55Z")

</div>

You are all familiar with the basic xml gallery([http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery5.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery5.htm)) I guess.What I am trying to do is apply css formatting to the dinamycally loaded text.

here is what I came up with

AS:

for (i=0; i\<total; i++) {  
image\* = xmlNode.childNodes\*.childNodes[0].firstChild.nodeValue;  
description\* = xmlNode.childNodes\*.childNodes[1].childNodes[0].firstChild.nodeValue;  
style\_txt = new TextField.StyleSheet();  
style\_txt.load(“style.css”);  
desc\_txt.styleSheet = style\_txt;  
desc\_txt.html = true;

```
    }

```

xml:

\<pic\>  
\<image\>images/31072003\_2.jpg\</image\>  
\<caption \>\<p class=“one”\>Eidsvolen\</p\>\</caption\>  
\</pic\>

css:

.one {  
font-family: Arial, Helvetica, sans-serif;  
font-size: 20px;  
font-weight: bold;  
color: #ff0000;  
}

I’d appreciate greatly any help!

---

<div class="post-metadata">

### Author: ![awholeuniverse](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@awholeuniverse](https://forum.kirupa.com/u/awholeuniverse)
#### Post date: [April 13, 2006, 11:38pm UTC](https://forum.kirupa.com/t/xml-gallery-what-else/185518/2 "2006-04-13T23:38:51Z")

</div>

at least a link to some tutorial ?:geek:
