RE: DOMDocument and html doctype

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

 



 
> 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 more...
> 

	Use $document->doctype, its DOMDocumentType object..
 
http://php.net/dom#dom.class.domdocumenttype 

Jared

-- 
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