src/Loader/XmlLoader.php
public function load()
    {
        libxml_use_internal_errors(true);
        $content = simplexml_load_file($this->entity);

        if (!$content) {
            throw new \RuntimeException(
                sprintf("'%s' failed to load with the error '%s'", $this->entity, libxml_get_errors()[0]->message)
            );
        }

        $this->content = json_decode(json_encode($content), true);
        return $this;
    }
public function load()
    {
        libxml_use_internal_errors(true);
        $content = simplexml_load_file($this->entity);

        if (!$content) {
            throw new \RuntimeException(
                sprintf("'%s' failed to load with the error '%s'", $this->entity, libxml_get_errors()[0]->message)
            );
        }

        $this->content = json_decode(json_encode($content), true);
        return $this;
    }
{@inheritdoc}

@throws \RuntimeException If the xml file fails to load