public static function createXml($nodeName, $arr = [], $version = '1.0', $encoding = 'UTF-8', $formatOutput = true)
    {
        $class = new self($version, $encoding, $formatOutput);
        $class->xml->appendChild($class->convert($nodeName, $arr));

        return $class->xml;
    }