# XML linebreaks & tabs

**URL:** <https://forum.kirupa.com/t/xml-linebreaks-tabs/246397>\
**Category:** flash\
**Created:** [December 10, 2007, 8:57pm UTC](https://forum.kirupa.com/t/xml-linebreaks-tabs/246397 "2007-12-10T20:57:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pensamente](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pensamente/32/1208_2.png) [@pensamente](https://forum.kirupa.com/u/pensamente)\
**Post date:** [December 10, 2007, 8:57pm UTC](https://forum.kirupa.com/t/xml-linebreaks-tabs/246397/1 "2007-12-10T20:57:42Z")

</div>

hi,

when sending a var to be writen down on a xml doc. (using php) how can i get it well with the linebreaks and tabs between each node?

**like this:**

```auto
<?xml version="1.0" encoding="iso-8859-1" ?>
<xml>
	<setChar char="c" pos="0" />
	<setChar char="o" pos="1" />
	<setChar char="m" pos="2" />
</xml>

```

**insted of this:**

```auto
<?xml version="1.0" encoding="iso-8859-1" ?><xml><setChar char="c" pos="0" /><setChar char="o" pos="1" /><setChar char="m" pos="2" /></xml>

```

:ear:

(…long time from my last post 🙂 )
