DOMDocument::normalizeDocument

(PHP 5)

DOMDocument::normalizeDocumentNormalizes the document

Description

public void DOMDocument::normalizeDocument ( void )

This method acts as if you saved and then loaded the document, putting the document in a "normal" form.

Return Values

No value is returned.

See Also

Коментарии

You can use this in this way.

$doc = new DOMDocument('1.0', 'UTF-8');
$doc->loadHTML($content); // html content
$xpath = new DOMXPath($doc);
$doc->normalizeDocument();

Note that, you can use $doc->normalizeDocument(); at any point of time.
2015-04-16 08:44:26
http://php5.kiev.ua/manual/ru/domdocument.normalizedocument.html

    Поддержать сайт на родительском проекте КГБ