Can someone help me figure out how to Parse a HTML Document at a remote URL, search for an entire string of code, and basically place it into the current local HTML Document?
I have one HTML Document with information that I want placed into another HTML Document. I want to strip the un-needed code from the first document, and place the remaining into the new document. My webserver does not support PHP, so i cant use that.
Here is an example of a Code
[CODE]
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>Untitled Document</title>
</head>
<table width=”430″ border=”0″ cellpadding=”0″ cellspacing=”0″>
<!– remove everything before this, keep below –>
<tr>
<td width=”216″ height=”110″ valign=”top”>TEST A</td>
<td width=”214″ valign=”top”>TEST B</td>
</tr>
<tr>
<td height=”112″ valign=”top”>TEST C</td>
<td valign=”top”>TEST D</td>
</tr>
<!– remove everything after this, keep above –>
</table>
</body>
</html>