I am having trouble binding my xml to an html document. When I bind the data, nothing shows in the body of the table.
The code:
The code:
Code:
<HTML>
<HEAD>
<xml id="BookList">
<book>
<bookid>1</bookid>
<title>Of the Causes of Wonderful Things</title>
<subtitle></subtitle>
<author>
<fname>John</fname>
<mname>Baptist</mname>
<lname>Porta</lname>
</author>
</book>
<book>
<bookid>2</bookid>
<title>Of the Generation of Animals</title>
<subtitle></subtitle>
<author>
<fname>John</fname>
<mname>Baptist</mname>
<lname>Porta</lname>
</author>
</book>
</xml>
</HEAD>
<BODY>
<table border="0" datasrc="#BookList">
<thead>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>SubTitle</th>
</tr>
</thead>
<tfoot>
<tr>
<th>((</th>
<th>))</th>
</tr>
</tfoot>
<tbody>
<tr>
<td><span datafld="bookid"></span></td>
<td><span datafld="title"></span></td>
<td><span datafld="subtitle"></span></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>