Re: XmlWriter::writeDTD bug...

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

 



Jared Williams wrote:
Hi,

	$writer = new XmlWriter();
	...

	$writer->writeDtd('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');

	produces no whitespace between the public & system ids like...
	
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

	Has anyone got a workaround for this problem?

libxml bug. Add $writer->setIndent(TRUE); before the writeDTD call (can revert it back right after if you dont want indenting). This will force whitespace insertion between the two - not pretty but its a workaround.

Rob

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