HTML Document:
--------------
<html>
<head>
<script language="JavaScript">
function movenext()
{
if (xmldso.recordset.absoluteposition < xmldso.recordset.recordcount)
{
xmldso.recordset.movenext()
}
}
function moveprevious()
{
if (xmldso.recordset.absoluteposition > 1)
{
xmldso.recordset.moveprevious()
}
}
</script>
</head>
<body>
<xml src="cd_catalog.xml" id="xmldso" async="false"></xml>
<p>
<table>
<tr>
<td>Title:</td>
<td><span ID="title" datasrc="#xmldso" datafld="TITLE"></span></td>
</tr>
<tr>
<td>Artist:</td>
<td><span ID="artist" datasrc="#xmldso" datafld="ARTIST"></span></td>
</tr>
<tr>
<td>Year:</td>
<td><span ID="year" datasrc="#xmldso" datafld="YEAR"></span></td>
</tr>
<tr>
<td>Country:</td>
<td><span ID="country" datasrc="#xmldso" datafld="COUNTRY"></span></td>
</tr>
<tr>
<td>Company:</td>
<td><span ID="company" datasrc="#xmldso" datafld="COMPANY"></span></td>
</tr>
<tr>
<td>Price:</td>
<td><span ID="price" datasrc="#xmldso" datafld="PRICE"></span></td>
</tr>
</table>
<p>
<input type="button" value="Previous CD" onclick="moveprevious()">
<input type="button" value="Next CD" onclick="movenext()">
</p>
</body>
</html>
XML Document:
-------------