public static function toAttributeString(array $arr = null): string
    {
        $ret = "";
        if ($arr !== null) {
            foreach ($arr as $k => $v) {
                $ret .= " $k=\"$v\"";
            }
        }
        return $ret;
    }