public function loadFragment($source, $contentType, $options = []) { if (FALSE !== ($json = $this->getJson($source, $contentType))) { $document = new Document('1.0', 'UTF-8'); $fragment = $document->createDocumentFragment(); $this->transferTo($fragment, $json); return $fragment; } return NULL; }