note 106026 added to function.xmlwriter-start-dtd
| From: | joaner1206 at gmail dot com | Date: | Tue, 04 Oct 2011 09:52:51 +0000 |
| Subject: | note 106026 added to function.xmlwriter-start-dtd | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183622@lists.php.net to get a copy of this message | ||
If you will write a HTML document :
// $xml = new XMLWriter(); you know it and openURI()
<?php
// for HTML 5
$xml->startDTD('html');
// for XHTML 1.0
$xml->startDTD('html', 'public', '-//W3C//DTD XHTML 1.0
Strict//EN');
$xml->endDTD();
?>
it will be :
<!DOCTYPE html>
or <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
don't need to startDocument() .
----
Server IP: 69.147.83.197
Probable Submitter: 14.145.65.188
----
Manual Page -- http://www.php.net/manual/en/function.xmlwriter-start-dtd.php
Edit -- https://master.php.net/note/edit/106026
Del: integrated -- https://master.php.net/note/delete/106026/integrated
Del: useless -- https://master.php.net/note/delete/106026/useless
Del: bad code -- https://master.php.net/note/delete/106026/bad+code
Del: spam -- https://master.php.net/note/delete/106026/spam
Del: non-english -- https://master.php.net/note/delete/106026/non-english
Del: in docs -- https://master.php.net/note/delete/106026/in+docs
Del: other reasons-- https://master.php.net/note/delete/106026
Reject -- https://master.php.net/note/reject/106026
Search -- https://master.php.net/manage/user-notes.php