# Editing xml data

**URL:** https://forum.kirupa.com/t/editing-xml-data/246828
**Category:** Uncategorized
**Created:** [December 14, 2007, 11:20pm UTC](https://forum.kirupa.com/t/editing-xml-data/246828 "2007-12-14T23:20:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![badmonur](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@badmonur](https://forum.kirupa.com/u/badmonur)
#### Post date: [December 14, 2007, 11:20pm UTC](https://forum.kirupa.com/t/editing-xml-data/246828/1 "2007-12-14T23:20:05Z")

</div>

Im trying to add elements to the xml file and it adds them when i trace it but when i check the actual file its not there.

node = \_root.xmlClass.createTextNode(\_root.name);  
\_root.xmlClass.firstChild.firstChild.appendChild( node);  
trace(\_root.xmlClass);

when i check the file it dosent appear but it does when i trace, how do i get it to change xml file
