# Replace xml

**URL:** <https://forum.kirupa.com/t/replace-xml/328703>\
**Category:** flash\
**Created:** [June 8, 2012, 9:18am UTC](https://forum.kirupa.com/t/replace-xml/328703 "2012-06-08T09:18:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cledus](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cledus](https://forum.kirupa.com/u/cledus)\
**Post date:** [June 8, 2012, 9:18am UTC](https://forum.kirupa.com/t/replace-xml/328703/1 "2012-06-08T09:18:21Z")

</div>

Hi!

I have a problem. I have an xml loaded in the var xml1. I want to replace all data in it with a newly loaded xml named xml2. I was hoping that I could do it like this: xml1 = xml2.  
It doesent work. Can I do it in some other way?

Thanks!
