# XML - White space?

**URL:** <https://forum.kirupa.com/t/xml-white-space/304327>\
**Category:** Uncategorized\
**Created:** [February 5, 2010, 1:20pm UTC](https://forum.kirupa.com/t/xml-white-space/304327 "2010-02-05T13:20:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttmt](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@ttmt](https://forum.kirupa.com/u/ttmt)\
**Post date:** [February 5, 2010, 1:20pm UTC](https://forum.kirupa.com/t/xml-white-space/304327/1 "2010-02-05T13:20:09Z")

</div>

XML - White space ?

Hi all

I have a simple xml file that I’m using to load images

```auto

        <travel&lifestyle>
		<image>images/travel/1marakesh</image>
		<image>images/travel/2marakesh</image>
		<image>images/travel/3marakesh</image>
		<image>images/travel/4marakesh</image>
		<image>images/travel/5new york</image>
	</travel&lifestyle>

```

I’m using the name of the base tag as the name of the nav to load the images. So from the xml above the nav button would be

“travel & lifestyle”

I know flash removes the whitespace but what if I want whitespace there.

If I try

```auto

<travel & lifestyle>

```

The xml won’t load and I get an error loading the xml file into Firefox

“XML Parsing Error: not well-formed”

How can I format the xml to keep the space

Thanks in advance for any help
