public function __construct($content)
{
$this->dom = new \DomDocument();
$this->dom->strictErrorChecking = false;
$this->dom->validateOnParse = false;
$this->dom->preserveWhiteSpace = true;
$this->dom->loadXML($content, LIBXML_PARSEHUGE);
$this->throwError();
}