Ce code fonctionne uniquement dans IE6 pourquoi? et comment je peux afficher mon xml en html (sans css)?Affichage XML en HTML, fonctionne uniquement en IE6
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<xml id="xmlcatalog" src="catalog.xml">
</xml>
<table datasrc = "#xmlcatalog" width="100%">
<thead>
<th>Image</th>
<th>Date</th>
<th>Time</th>
<th>Title</th>
<th>Author</th>
<th>Genre</th>
</thead>
<tr align="left">
<td><span datafld="image"></span></td>
<td><span datafld="date"></span></td>
<td><span datafld="time"></span></td>
<td><span datafld="title"></span></td>
<td><span datafld="author"></span></td>
<td><span datafld="genre"></span></td>
</tr>
</table>
</body>
</html>
XML
<?xml version="1.0" encoding="windows-1251"?>
<catalog>
<spectacle>
<image>Lir.gif</image>
<date> 16.09.10</date>
<time> 19:00</time>
<title> King Lear</title>
<author> William Shakespeare/author>
<genre> tragedy </genre>
</spectacle>
</catalog>
* MISE À JOUR: * Existe aussi solution en utilisant XSLT http://www.w3schools.com/xsl/xsl_for_each.asp
Wow, "XML Data Islands". Je ne t'ai pas vu depuis * longtemps *. Ne me manquez pas beaucoup. – bobince