# What's the code for applying CSS to an XML file, in a dynamic text field

**URL:** <https://forum.kirupa.com/t/whats-the-code-for-applying-css-to-an-xml-file-in-a-dynamic-text-field/279457>\
**Category:** flash\
**Created:** [January 14, 2009, 10:12pm UTC](https://forum.kirupa.com/t/whats-the-code-for-applying-css-to-an-xml-file-in-a-dynamic-text-field/279457 "2009-01-14T22:12:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![as1969](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@as1969](https://forum.kirupa.com/u/as1969)\
**Post date:** [January 14, 2009, 10:12pm UTC](https://forum.kirupa.com/t/whats-the-code-for-applying-css-to-an-xml-file-in-a-dynamic-text-field/279457/1 "2009-01-14T22:12:24Z")

</div>

Hi all,

Very simply put, just like in the title.  
If you have a CSS ready, an XML file that already appears inside a dynamic text field, **what AS2 code would you use to connect the CSS so it applies to the XML file** which is now unstyled?

thanks!!!
