# Change XML source

**URL:** <https://forum.kirupa.com/t/change-xml-source/297786>\
**Category:** flash\
**Created:** [October 8, 2009, 1:08pm UTC](https://forum.kirupa.com/t/change-xml-source/297786 "2009-10-08T13:08:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wentworth](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wentworth/32/3451_2.png) [@wentworth](https://forum.kirupa.com/u/wentworth)\
**Post date:** [October 8, 2009, 1:08pm UTC](https://forum.kirupa.com/t/change-xml-source/297786/1 "2009-10-08T13:08:07Z")

</div>

I’ve had an idea - probably not original and want to know if a) this is possible and b) is it logical and good practice.

I have a swf with UI components (Tile list and combo box) populated from an XML file. When I want to change the data I go to a new frame with identical components and load a new XML file. My question is, can I use a button to load a new XML file into the existing frame. If so how would the code look?
