Re: finding text strings in html code
| From: | Curt Zirzow | Date: | Sun, 13 Jun 2004 01:33:34 +0000 |
| Subject: | Re: finding text strings in html code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188168@lists.php.net to get a copy of this message | ||
* Thus wrote Kathleen Ballard (klb5770@yahoo.com):
> I am beginning a project that will involve moving data
> from an mssql table to xml files.
>
> ...
>
> I have played with code using substr/str_pos, running
> html tidy with exec() and it works. But searching the
> archives, it seems like the new html tidy tags in php5
> will be more useful. In most cases the target text is
> in a one row, one cell table.
>
> Any advice on how to attack this would be appreciated.
> I can handle the coding, I just have a feeling I am
> approaching this from the hard way.
I think you're on the right track with using tidy's php5 features.
Here is some more documentation on tidy, hopefully it will push
your approach in the right direction:
http://www.coggeshall.org/tidy.php
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!