I have a large number of HTML pages sitting on my local drive that I created using a database. The database was recently corrupted and I'm looking for a way to rebuild it. Is there a way, using CF, to extract the data from the html pages and load the data to a database in a batch process? Below is a stripped down version of one of the html pages. I need to be able to gather player name, team, points and other league data and load it into the new database.
thanks,
***********************************************
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<title>Player Data</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../screen.css" type="text/css" />
</head>
<body>
<table id="playerdata" cellpadding="0" cellspacing="0">
<tr>
<td class="datalabel">Name:</td>
<td class="data">Roger Smith</td>
</tr>
<tr>
<td class="datalabel">Team:</td>
<td class="data"> Blue Badgers</td>
</tr>
<tr>
<td class="datalabel">Season Points:</td>
<td class="data">95</td>
</tr>
<tr>
<td class="datalabel">Other Leagues:</td>
<td class="data">Hawthorne; Greendale;</td>
</tr>
</table>
</body>
</html>
thanks,
***********************************************
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<title>Player Data</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../screen.css" type="text/css" />
</head>
<body>
<table id="playerdata" cellpadding="0" cellspacing="0">
<tr>
<td class="datalabel">Name:</td>
<td class="data">Roger Smith</td>
</tr>
<tr>
<td class="datalabel">Team:</td>
<td class="data"> Blue Badgers</td>
</tr>
<tr>
<td class="datalabel">Season Points:</td>
<td class="data">95</td>
</tr>
<tr>
<td class="datalabel">Other Leagues:</td>
<td class="data">Hawthorne; Greendale;</td>
</tr>
</table>
</body>
</html>