Get an HTML as input and convert it to a valid XSL/XML file (close unclosed tags, put quotes around attribute values and such). I can do this walking the nodes with DOM and rewriting it out but maybe there is something that does it?
ie:
<html>
<meta blah blah>
</body>
<p>
<table border=1>
<tr>
<td></td>
</tr>
</table>
</body>
</html>
To:
<html>
<meta blah blah/>
</body>
<p/>
<table border="1">
<tr>
<td></td>
</tr>
</table>
</body>
</html>
TIA
Cetin