I'm working for a way to show xml data in a HTML page with XML DOM but I have a question: how to show/not show the bold elements in next code if the text in a element exists or not??

Code:
<table border="0">
					<tr>
						<td><img src="images/mark01.gif" width="10" height="9"></td>
						<td class="txtDest02"><span id="dia"></span><span id="mes"></span><span id="ano"></span> - <span id="titulo"></span></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>
							<p class="pBrd">
							<span id="amostra"></span><a id="link">...Mais</a>
							</p>
						</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
				  	</table>