/// <summary>
        /// Determines whether the file can be displayed by
        /// the xml editor.
        /// </summary>
        public static bool IsFileNameHandled(string fileName)
        {
            if (fileName == null)
            {
                return(false);
            }

            if (System.IO.Path.IsPathRooted(fileName))
            {
                string vfsname  = fileName.Replace("%", "%25").Replace("#", "%23").Replace("?", "%3F");
                string mimeType = DesktopService.GetMimeTypeForUri(vfsname);
                if (IsMimeTypeHandled(mimeType))
                {
                    return(true);
                }
            }

            return(XmlFileExtensions.IsXmlFileExtension(System.IO.Path.GetExtension(fileName)));
        }
        /// <summary>
        /// Determines whether the file can be displayed by
        /// the xml editor.
        /// </summary>
        public static bool IsFileNameHandled(string fileName)
        {
            if (fileName == null)
            {
                return(false);
            }

            string vfsname = fileName;

            vfsname = vfsname.Replace("%", "%25");
            vfsname = vfsname.Replace("#", "%23");
            vfsname = vfsname.Replace("?", "%3F");
            string mimeType = MimeType.GetMimeTypeForUri(vfsname);

            if (IsMimeTypeHandled(mimeType))
            {
                return(true);
            }

            return(XmlFileExtensions.IsXmlFileExtension(Path.GetExtension(fileName)));
        }