# XML formatting

**URL:** <https://forum.kirupa.com/t/xml-formatting/317276>\
**Category:** flash\
**Created:** [December 15, 2010, 2:50pm UTC](https://forum.kirupa.com/t/xml-formatting/317276 "2010-12-15T14:50:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esseti](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@Esseti](https://forum.kirupa.com/u/Esseti)\
**Post date:** [December 15, 2010, 2:50pm UTC](https://forum.kirupa.com/t/xml-formatting/317276/1 "2010-12-15T14:50:09Z")

</div>

I load a neatly formated XML into Flash in the form of:

```auto

<?xml version="1.0" encoding="utf-8"?>
<root>
	<settings
	prop0="0"
	prop1="1"
	/>
</root>

```

But when I change the props values of the xml, and set it to the clipboard, I loose all of the tabs, spaces, and line breaks.

```auto

<?xml version="1.0" encoding="utf-8"?>
<root><settings	prop0="0" prop1="1" /></root>

```

Is there a way to retain the formatting? I tried ignorWhitespaces, prettyIndent, prettyPrinting but non of those seem to work.
