/** * Load XML into a DOM * * @param string $xml XML string * * @return DOMDocument */ protected function loadXML($xml) { $doc = new DOMDocument(); if (!$doc->loadXML($xml, LIBXML_PARSEHUGE)) { return false; } if ($this->transformation) { return $this->transformation->transformToDoc($doc); } return $doc; }