RE: html to xml?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Slith wrote:
> 
> > i need to parse an html page for tabular data which i can then import
> > into mysql so i thought converting the html to xml might be a feasible
> > thing to do, however, other than using tidy from the command line i
> > can't find a way to do this from php.
> > 
> > does anyone know of any class (or other) that would allow me to do
> > this? or maybe i just need a different approach.
> 
> Is this a one-off or will you be doing this often?
> 
> For a one-off I would just use sed/grep/awk/cut/tr etc. - HTML pages are
> rarely syntactically correct, so trying to parse them or even turn them
> into XML is tiresome at best. 

For one-off, I'd simply copy/paste the data from the browser into Excel/OO Calc and save as CSV.

Edward

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux