Appends nodes in the fragment.
<?php
$doc = new DOMDocument;
$fragment = $doc->createDocumentFragment();
$fragment->appendChild($doc->createElement("hello"));
$fragment->append("beautiful", $doc->createElement("world"));
echo $doc->saveXML($fragment);
?>
The above example will output:
<hello/>beautiful<world/>