Tamplate match system
| From: | Adonias Malosso | Date: | Thu, 20 Feb 2003 01:50:53 +0000 |
| Subject: | Tamplate match system | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136296@lists.php.net to get a copy of this message | ||
Hi!
I´m building an application that extracts information from some html pages
from differents sites and formatting. I´m doing it with preg but i´d like
to know if is possible to design a template system that will match to files
and retrive the values like in the following example:
EXAMPLE OF THE EXISTING HTML CODE
<table>
<tr>
<td><font face='arial' size='2'>Number</font></td>
<td>123456789</td>
</tr>
<tr>
<td><font face='arial' size='2'>Owner</font></td>
<td>My Self</td>
</tr>
</table>
EXAMPLE OF THE TEMPLATE HTML CODE
<table>
<tr>
<td><font face='arial' size='2'>Number</td>
<td><value>number</value></td>
</tr>
<tr>
<td><font face='arial' size='2'>Number</td>
<td><value>owner</value></td>
</tr>
</table>
So... the goal of the system is to match these 2 html and retrive the
value. Anyone has any idea of how i can do this?
thanks
Adonias Malosso