RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Jared Williams
Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone know how I can access this string? By reading the doctype back from DOMDocument I only found the name (HTML) but nothing

Re: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 06:00, Claudio wrote: Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone know how I can access this string? By reading the doctype back from DOMDocument I

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 07:57, Jared Williams wrote: Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone know how I can access this string? By reading the doctype back from

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Jared Williams
On Sat, 2005-05-14 at 07:57, Jared Williams wrote: Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone know how I can access this string? By reading the doctype

Re: [PHP] DOMDocument and html doctype

2005-05-14 Thread Johannes Findeisen
On Saturday 14 May 2005 16:25, Brian V Bonini wrote: ?php $html = EOS !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN htmlbodyTestbr/body/html EOS; $pattern = '!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN'; $doc = new DOMDocument(); $doc-loadHTML($html);

Re: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 16:08, Johannes Findeisen wrote: On Saturday 14 May 2005 16:25, Brian V Bonini wrote: ?php $html = EOS !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN htmlbodyTestbr/body/html EOS; $pattern = '!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Brian V Bonini
On Sat, 2005-05-14 at 13:03, Jared Williams wrote: On Sat, 2005-05-14 at 07:57, Jared Williams wrote: Hi, I've used loadHTML() to read a HTML file to DOM. This file starts with a string like !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone