Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [html] jak usunać błąd XMLa
Forum PHP.pl > Forum > Przedszkole
kononowicz
witam. Postanowiłem zwalidować (W3C validator) moja stronkę zrobioną w mambo. nie moge sobie poradzić z nastepującymi błedami (wszystkie tycza sie XMLa):



  1.  49. Error  Line 44, Column 25: XML Parsing Error: Opening and ending tag mismatch: td line 43 and tr .
  2.  
  3.                          </tr>
  4.  
  5.      
  6.  50. Error Line 48, Column 29: XML Parsing Error: Opening and ending tag mismatch: td line 47 and tr .
  7.  
  8.                              </tr>
  9.  
  10.      
  11.  51. Error Line 54, Column 33: XML Parsing Error: Opening and ending tag mismatch: td line 53 and tr .
  12.  
  13.                                  </tr>
  14.  
  15.      
  16.  52. Error Line 58, Column 37: XML Parsing Error: Opening and ending tag mismatch: td line 57 and tr .
  17.  
  18.                                      </tr>
  19.  
  20.      
  21.  53. Error Line 60, Column 38: XML Parsing Error: Opening and ending tag mismatch: td line 56 and table .
  22.  
  23.                                    </table>
  24.  
  25.      
  26.  54. Error Line 61, Column 33: XML Parsing Error: Opening and ending tag mismatch: tr line 55 and td .
  27.  
  28.                                  </td>
  29.  
  30.      
  31.  55. Error Line 62, Column 31: XML Parsing Error: Opening and ending tag mismatch: td line 52 and tr .
  32.  
  33.                                </tr>
  34.  
  35.      
  36.  56. Error Line 98, Column 30: XML Parsing Error: Opening and ending tag mismatch: tr line 49 and table .
  37.  
  38.                            </table>
  39.  
  40.      
  41.  57. Error Line 246, Column 69: XML Parsing Error: EntityRef: expecting ';' .
  42.  
  43.      ef='index.php?option=com_content&task=view&id=78'>Napisz komentarz (4 Komenta
  44.  
  45.      ✉
  46.  58. Error Line 246, Column 77: XML Parsing Error: EntityRef: expecting ';' .
  47.  
  48.      x.php?option=com_content&task=view&id=78'>Napisz komentarz (4 Komentarze )</a
  49.  
  50.      ✉
  51.  59. Error Line 249, Column 15: XML Parsing Error: Opening and ending tag mismatch: tr line 214 and table .
  52.  
  53.                  </td></table></td></tr></table>                                    <center>
  54.  
  55.      
  56.  60. Error Line 249, Column 20: XML Parsing Error: Opening and ending tag mismatch: table line 214 and td .
  57.  
  58.                  </td></table></td></tr></table>                                    <center>
  59.  
  60.      
  61.  61. Error Line 249, Column 25: XML Parsing Error: Opening and ending tag mismatch: td line 214 and tr .
  62.  
  63.                  </td></table></td></tr></table>                                    <center>
  64.  
  65.      
  66.  62. Error Line 249, Column 33: XML Parsing Error: Opening and ending tag mismatch: tr line 214 and table .
  67.  
  68.                  </td></table></td></tr></table>                                    <center>
  69.  
  70.      
  71.  63. Error Line 256, Column 33: XML Parsing Error: Opening and ending tag mismatch: table line 214 and td .
  72.  
  73.                                  </td>
  74.  
  75.      
  76.  64. Error Line 314, Column 33: XML Parsing Error: Opening and ending tag mismatch: td line 257 and tr .
  77.  
  78.                                  </tr>
  79.  
  80.      
  81.  65. Error Line 332, Column 8: XML Parsing Error: Opening and ending tag mismatch: tr line 315 and table .
  82.  
  83.      </table>
  84.  
  85.      
  86.  66. Error Line 336, Column 7: XML Parsing Error: Opening and ending tag mismatch: td line 153 and body .
  87.  
  88.      </body>
  89.  
  90.      
  91.  67. Error Line 337, Column 7: XML Parsing Error: Opening and ending tag mismatch: tr line 152 and html .
  92.  
  93.      </html>
  94.  
  95.      
  96.  68. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag tr line 134 .
  97.  
  98.      <!-- 1189687647 -->
  99.  
  100.      
  101.  69. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag td line 39 .
  102.  
  103.      <!-- 1189687647 -->
  104.  
  105.      
  106.  70. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag tr line 38 .
  107.  
  108.      <!-- 1189687647 -->
  109.  
  110.      
  111.  71. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag table line 37 .
  112.  
  113.      <!-- 1189687647 -->
  114.  
  115.      
  116.  72. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag td line 36 .
  117.  
  118.      <!-- 1189687647 -->
  119.  
  120.      
  121.  73. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag tr line 35 .
  122.  
  123.      <!-- 1189687647 -->
  124.  
  125.      
  126.  74. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag table line 34 .
  127.  
  128.      <!-- 1189687647 -->
  129.  
  130.      
  131.  75. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag td line 33 .
  132.  
  133.      <!-- 1189687647 -->
  134.  
  135.      
  136.  76. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag tr line 32 .
  137.  
  138.      <!-- 1189687647 -->
  139.  
  140.      
  141.  77. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag table line 31 .
  142.  
  143.      <!-- 1189687647 -->
  144.  
  145.      
  146.  78. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag body line 30 .
  147.  
  148.      <!-- 1189687647 -->
  149.  
  150.      
  151.  79. Error Line 339, Column 19: XML Parsing Error: Premature end of data in tag html line 2 .
  152.  
  153.      <!-- 1189687647 -->
  154.  
  155.      


jak usunąc te błędy questionmark.gif? z góry dzieki za pomoc
gekon
A ja mam problem z samochodem, chyba coś z zawieszeniem. POKAŻ KOD!

Edyta:
Albo nie, nie pokazuj. Przepisz całą stronę od nowa.

PS. Dlaczego to wylądowało w dziale XML?
kononowicz
myslałem ze na te błędy jest jakies proste wyttlumaczenie niezaleznie od kodu... oto kod (templatka cmsa wlasnej roboty):

  1. <?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  2. // needed to seperate the ISO number from the language file constant _ISO
  3. $iso = split( '=', _ISO );
  4. // xml prolog
  5. print '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
  6.  
  7.  
  8. ?>
  9. <?PHP if(file_exists($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php"))
  10. {
  11. require_once($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php");
  12. }?>
  13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  14. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  15. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
  16. <?php
  17. if ( $my->id ) {
  18. initEditor();
  19. }
  20. ?>
  21. <meta name="verify-v1" content="EZsnZvuw4oGlmnJHB1btb8y6AkEF+7gxyTrT80SfNNs=" />
  22. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  23. <?php mosShowHead(); ?>
  24.  
  25. <link rel="stylesheet" type="text/css" href="<?php echo $mosConfig_live_site; ?>/templates/xxx/css/template_css.css" />
  26. </head>
  27. <table class="main_table" cellspacing="0" cellpadding="0" align="center" border="0" width="770">
  28. <tr>
  29. <td>
  30. <table cellspacing="0" cellpadding="0" align="center" border="0">
  31. <tr>
  32. <td class="bannerr">
  33. <table width="770" height="182" cellpadding="0" cellspacing="0" border="0">
  34. <tr height="22">
  35. <td align="right" colspan="2">
  36. <a class="link_log" href="javascript:;" onclick="window.external.addFavorite(top.location.href, 'Start - izorynek')">DODAJ DO ULUBIONYCH</a> <font color="#FFFFFF">|</font>
  37. <a class="link_log" href="index.php?option=com_contact&Itemid=1">KONTAKT</a> <font color="#FFFFFF">|</font>
  38. <a class="link_log" href="index.php?option=com_bookmarks&Itemid=0&mode=0&catid=8&search=a" name="xxx">xxx</a>
  39. <td>
  40. </tr>
  41. <tr height="135">
  42. <td colspan="2">
  43. <td>
  44. </tr>
  45. <tr height="25">
  46. <td width="30%">
  47. </td>
  48. <td width="70%">
  49. <?php mosLoadModules ( 'user3', -1 ); ?>
  50. <td>
  51. </tr>
  52. <tr>
  53. <td>
  54. <td>
  55. </tr>
  56.  
  57. </table>
  58. </td>
  59. </tr>
  60. </table>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td class="navy_table">
  65. </td>
  66. <tr>
  67. <td class="przerwa">
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>
  72. <table class="glowna" width="100%" border="0" cellspacing="0" cellpadding="0">
  73. <tr>
  74. <td class="left_column" width="160px" valign="top" align="left" >
  75. <?php mosLoadModules ( 'left' ); ?>
  76. </td>
  77. <td class="mainpage" valign="top" width="480px" align="center">
  78. <?php mosMainBody(); ?>
  79. <?php mosLoadModules ('user5'); ?>
  80. </td>
  81. <td class="raight_column" width="161px" valign="top" align="right">
  82. <?php mosLoadModules ('right'); ?>
  83.  
  84. <?php mosLoadModules ('user6'); ?>
  85. <form method="get" action="http://www.google.com/search">
  86. <table cellpadding="0" cellspacing="0" class="moduletable">
  87. <tr>
  88. <th valign="top">
  89. Google </th>
  90. </tr>
  91. <tr>
  92. <td>
  93. <table class="contentpaneopen">
  94. <tr>
  95. <td valign="top">
  96. <input type="text" name="q" size="18" value="" />
  97. </center>
  98. <input type="hidden" name="hl" value="pl" /><br />
  99. <input type="submit" name="sa" value="szukaj" />
  100. </center>
  101. </td>
  102. </tr>
  103. </table>
  104. </td>
  105. </tr>
  106. </table>
  107. </form>
  108. <td>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td colspan="3">
  113. <br />
  114. <table cellspacing="0" cellpadding="0" border="0" width="100%">
  115. <tr>
  116. <td class="stopka_buton">
  117. </td>
  118. <td class="stopka_wew">
  119. <a class="stopka" href="index.php?option=com_contact&Itemid=1">Kontakt</a> | Reklama
  120. </td>
  121. <td class="stopka_buton">
  122. </td>
  123. </tr>
  124. </td>
  125. </td>
  126. </tr>
  127. <?php mosLoadModules( 'debug', -1 );
  128. ?>
  129. </body>
  130. </html>
nospor
czy komunikaty bledu nic ci nie mowia?

Wszedzie masz takie konstrukcje jak:
  1. <td>
  2. <td>

powinno byc:
  1. <td >
  2. </td>

I jak slusznie zauwazono z xml ma to sredni zwiazek. Przenosze.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.