src/Genesis/Utils/Common.php
public static function isValidXMLName($tag)
    {
        if (!is_array($tag)) {
            return preg_match('/^[a-z_]+[a-z0-9\:\-\.\_]*[^:]*$/i', $tag, $matches) && reset($matches) == $tag;
        }

        return false;
    }
public static function isValidXMLName($tag)
    {
        if (!is_array($tag)) {
            return preg_match('/^[a-z_]+[a-z0-9\:\-\.\_]*[^:]*$/i', $tag, $matches) && reset($matches) == $tag;
        }

        return false;
    }
public static function isValidXMLName ( $ tag ) { if ( ! is_array ( $ tag ) ) { return preg_match ( '/^[a-z_]+[a-z0-9\:\-\.\_]*[^:]*$/i' , $ tag , $ matches ) && reset ( $ matches ) == $ tag ; } return false ; }
Check if the passed argument is a valid XML tag name

@param string $tag

@return bool
Check if the passed argument is a valid XML tag name