/** *@desc Get a xml node element to return ajax component *@param IModule $module User module interface *@param string $element Element name *@return DOMDocument - Return the XHTML result */ public function getDocumentElement($module, $element = "", $id = "") { $px = $module->CreatePage(); if (is_null($px) || !$px instanceof PageXml) { return "<message>The return value of your CreatePage method is not a PageXml Class.</message>"; } if (empty($element)) { return XmlUtil::SaveXmlNodeToString($px->getRootNode()); } //\DOMNode $nodePage = $px->getRootNode(); if ($element == "") { $element = "blockcenter"; } $findedElements = XmlUtil::selectSingleNode($nodePage, $element); return XmlUtil::SaveXmlNodeToString($findedElements); }