Click to See Complete Forum and Search --> : XML/XHTML Problem


J-o-h-n-n-y
03-13-2006, 12:32 PM
OK, so I have this peice of code. It is a TPL style file, part of my phpBB Forum:

<!-- BEGIN switch_inline_mode -->
<table border="0" cellpadding="3" cellspacing="1" width="70%" class="forumline">
<tr>
<td class="catHead" height="28" align="center"><b><span class="cattitle">{L_TOPIC_REVIEW}</span></b></td>
</tr>
<tr>
<td class="row1"><iframe width="70%" height="300" src="{U_REVIEW_TOPIC}" >
<!-- END switch_inline_mode -->
<table border="0" cellpadding="3" cellspacing="1" width="70%" class="forumline">
<tr>
<th class="thCornerL" width="22%" height="26">{L_AUTHOR}</th>
<th class="thCornerR">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td width="22%" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><b>{postrow.POSTER_NAME}</b></span></td>
<td class="{postrow.ROW_CLASS}" height="28" valign="top">
<table width="70%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen">&nbsp;</span>&nbsp;&nbsp;&nbsp;{L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
</tr>
<tr>
<td colspan="2"><hr /></td>

<tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}</span></td>
</tr>
<tr>
<td colspan="2" height="1" class="spaceRow"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr></table>
<!-- END postrow -->
</table>
<!-- BEGIN switch_inline_mode -->
</iframe></td>
</tr>
</table>
<!-- END switch_inline_mode -->

The problem is that the W3C Validator (http://validator.w3.org/) comes up with an error for the parts I've put in bold. All three of them are:

"End tag for XXX which is not open."

When, if you look at the code, it is open.

This is for a rather important part of my site, and it almost NEEDS to be in Valid XHTML, and so I'd appreciate any help.

thedosmann
03-13-2006, 12:46 PM
7th line no td end..I stopped there

J-o-h-n-n-y
03-13-2006, 01:02 PM
7th line no td end..I stopped there

There is, a new table starts there (inside that td). If you look at where the new table ends, the close td comes after that.

thedosmann
03-13-2006, 02:28 PM
Still in the posted code I count 15 <?td>....either you missed an opening td or a close

J-o-h-n-n-y
03-13-2006, 02:32 PM
Ah, yes, you are right. I'll see what is missing...