# What to write if I want an empty XMLnode?

**URL:** <https://forum.kirupa.com/t/what-to-write-if-i-want-an-empty-xmlnode/205507>\
**Category:** flash\
**Created:** [October 30, 2006, 12:36pm UTC](https://forum.kirupa.com/t/what-to-write-if-i-want-an-empty-xmlnode/205507 "2006-10-30T12:36:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)\
**Post date:** [October 30, 2006, 12:36pm UTC](https://forum.kirupa.com/t/what-to-write-if-i-want-an-empty-xmlnode/205507/1 "2006-10-30T12:36:24Z")

</div>

I have this XML and want to sometimes display the info and sometomes not. Is there anyway to write in the XML doc that displays nothing?

```php

<?xml version="1.0" encoding="iso-8859-1" ?>

<subnumber>
	<subinfo>
		<path>main6/images2/01.gif</path>
		<info><![CDATA[<textformat leading="3"><p><span class="hilight">RUBRIK</span><br><span class="year">Uppdragsgivare: XXX<br>Datum: XXX/XXX</span><br>TEXT</p></textformat>]]></info>
	</subinfo>
	<subinfo>
		<path>main6/images2/02.gif</path>
		<info></info>
	</subinfo>
	<subinfo>
		<path>main6/images2/03.gif</path>
		<info></info>
	</subinfo>
	<subinfo>
		<path>main6/images2/04.jpg</path>
		<info></info>
	</subinfo>
</subnumber>

```
