protected emptyElement ( DOMDocument $document ) | ||
$document | DOMDocument | the document that will contain the empty element. |
protected function emptyElement($document)
{
$fragment = $document->createDocumentFragment();
$fragment->appendChild($document->createTextNode(''));
return $fragment;
}