Adds nodes after the character data.
<?php
$doc = new DOMDocument;
$doc->loadXML("<container><![CDATA[hello]]></container>");
$cdata = $doc->documentElement->firstChild;
$cdata->after("beautiful", $doc->createElement("world"));
echo $doc->saveXML();
?>
The above example will output:
<?xml version="1.0"?>
<container><![CDATA[hello]]>beautiful<world/></container>