/** * For debugging purposes */ public function Dump($bReturnRes = false) { $oMFDoc = new MFDocument(); $oClone = $oMFDoc->importNode($this->cloneNode(true), true); $oMFDoc->appendChild($oClone); $sXml = $oMFDoc->saveXML($oClone); if ($bReturnRes) { return $sXml; } else { echo "<pre>\n"; echo htmlentities($sXml); echo "</pre>\n"; } }