# Processing CSS inside XML

**URL:** <https://forum.kirupa.com/t/processing-css-inside-xml/60019>\
**Category:** programming\
**Created:** [August 5, 2004, 6:02pm UTC](https://forum.kirupa.com/t/processing-css-inside-xml/60019 "2004-08-05T18:02:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoddo](https://avatars.discourse-cdn.com/v4/letter/z/8e7dd6/32.png) [@zoddo](https://forum.kirupa.com/u/zoddo)\
**Post date:** [August 5, 2004, 6:02pm UTC](https://forum.kirupa.com/t/processing-css-inside-xml/60019/1 "2004-08-05T18:02:49Z")

</div>

Hi all,  
i have a tricky question: how to process css inside a xml file, which is use for display in FlashMX pro? I’ve done the kirupa’s tutorial on XML, and find other infos on the w3schools site on how to implant css in xml, which when not in flash display the right font/color.

ok here what i am doing: first, i did a very simple css file which look like this:  
NAME  
{  
font-family: “Trebuchet MS”;  
font-size: 10px;  
color: #CC6600;  
}

then the xml file:  
[size=2]\<?xml version=“1.0”?\>  
\<?xml-stylesheet type=“text/css” href=“[http://jdl.ip-max.net/ipmax/css/menufr.css](http://jdl.ip-max.net/ipmax/css/menufr.css)”?\>

\<[menu.fr](http://menu.fr)\>  
\<menu.principal\>  
\<NAME\>services\</NAME\>  
\</menu.principal\>  
\<menu.principal\>  
\<NAME\>clients\</NAME\>  
\</menu.principal\>  
\<menu.principal\>  
\<NAME\>contacts\</NAME\>  
\</menu.principal\>  
\</menu.fr\>  
[/size]  
note that if i display my xml file in IE, the xml display ‘services’, ‘clients’ and ‘contact’ on one row, but everythings fine with color etc.

in flash, i based my code on kirupa’s tutorial on XML (firstchild and nodes).

so here i am, with no idea on what to do to make that work.  
hope you can help :book:

p.s.: you can find the fla [here](http://jdl.ip-max.net/ipmax/test.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 6, 2004, 2:49am UTC](https://forum.kirupa.com/t/processing-css-inside-xml/60019/2 "2004-08-06T02:49:12Z")

</div>

sweeeet! :pleased:  
i finally found the sources for applying css to xml files in flash in [that tutorial](http://www.actionscript.org/tutorials/beginner/XML-Formatted_Content/index.shtml)

have a nice day!

- zoddo

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 6, 2004, 3:29am UTC](https://forum.kirupa.com/t/processing-css-inside-xml/60019/3 "2004-08-06T03:29:23Z")

</div>

care to share it? 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 6, 2004, 4:36am UTC](https://forum.kirupa.com/t/processing-css-inside-xml/60019/4 "2004-08-06T04:36:08Z")

</div>

my bad: here’s the link

[http://www.actionscript.org/tutorials/beginner/XML-Formatted\_Content/index.shtml](http://www.actionscript.org/tutorials/beginner/XML-Formatted_Content/index.shtml)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 6, 2004, 5:50pm UTC](https://forum.kirupa.com/t/processing-css-inside-xml/60019/5 "2004-08-06T17:50:20Z")

</div>

i suppose it is due to textArea component, but the SWF is huge for the kind of data it contains (only text): 40k for the SWF…
