SitesMasstec
Technical User
Hello colleagues!
When I open the file LISTA.HTM in Internet Explorer or Chrome, there is no data binding with LISTA.XML. It is displaying just the header, without any record. What am I missing?
LISTA.HTM:
LISTA.XML:
Thank you,
SitesMasstec
When I open the file LISTA.HTM in Internet Explorer or Chrome, there is no data binding with LISTA.XML. It is displaying just the header, without any record. What am I missing?
LISTA.HTM:
Code:
<html>
<head>
<title>Uso de Data Islands</title>
</head>
<style type="text/css">
body {font: 80% verdana; background-color: beige}
td {font-size: 80%}
th {font-size: 90%}
</style>
<body>
<xml id="dados" src="lista.xml"></xml>
<table datasrc="#dados" border="1" cellpadding="4" cellspacing="0" bordercolor="black">
<thead>
<tr>
<th>Código</th>
<th>Título</th>
<th>Cantor</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center"><span datafld="cod"></span></td>
<td><span datafld="titulo"></span></td>
<td><span datafld="cantor"></span></td>
</tr>
</tbody>
</table>
</body>
</html>
LISTA.XML:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<colecao>
<cds>
<cod>3949</cod>
<titulo>Fear of the Dark</titulo>
<cantor>Iron Maiden</cantor>
</cds>
<cds>
<cod>1113</cod>
<titulo>The Black Album</titulo>
<cantor>Metallica</cantor>
</cds>
<cds>
<cod>9449</cod>
<titulo>As canções que você fêz pra mim</titulo>
<cantor>Roberto Carlos</cantor>
</cds>
<cds>
<cod>9564</cod>
<titulo>Old Hits</titulo>
<cantor>The Beatles</cantor>
</cds>
<cds>
<cod>3444</cod>
<titulo>Baile dos Namorados</titulo>
<cantor>Alberto Nobres</cantor>
</cds>
<cds>
<cod>9864</cod>
<titulo>The Masters of Blues</titulo>
<cantor>New York National Blues Band</cantor>
</cds>
</colecao>
Thank you,
SitesMasstec