# Save an XML file from Flash..?

**URL:** https://forum.kirupa.com/t/save-an-xml-file-from-flash/119522
**Category:** Uncategorized
**Created:** [August 16, 2004, 12:38am UTC](https://forum.kirupa.com/t/save-an-xml-file-from-flash/119522 "2004-08-16T00:38:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)
#### Post date: [August 16, 2004, 12:38am UTC](https://forum.kirupa.com/t/save-an-xml-file-from-flash/119522/1 "2004-08-16T00:38:05Z")

</div>

Hi- I’m tryng to find out if its possible to generate an XML file from Flash in a web browser. I have a Flash app that generates formatted XML code in a text field, and I want to be able to save the file from there. My work-around right now is to just copy and paste outside of the program. I’m not too familiar with Javascript and I’ve used this example before to save TXT files:

[http://www.grantdavisdesign.com/temp/saveAFileFromFlash.zip](http://www.grantdavisdesign.com/temp/saveAFileFromFlash.zip)

Is is possible to apply the same principals and make an XML document? One issue I’ve also been having is keeping the correct formatting once Flash sends the variable through the web browser to the text file. It just comes out as one long line of text. Any insight there would also be appreciated. Thanks!

---

<div class="post-metadata">

### Author: ![redanchor](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@redanchor](https://forum.kirupa.com/u/redanchor)
#### Post date: [August 16, 2004, 12:40am UTC](https://forum.kirupa.com/t/save-an-xml-file-from-flash/119522/2 "2004-08-16T00:40:16Z")

</div>

[http://www.kirupa.com/web/xml\_guestbook.htm](http://www.kirupa.com/web/xml_guestbook.htm)

---

<div class="post-metadata">

### Author: ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)
#### Post date: [August 16, 2004, 12:41am UTC](https://forum.kirupa.com/t/save-an-xml-file-from-flash/119522/3 "2004-08-16T00:41:55Z")

</div>

Wow what a quick reply, thanks!
