private static void LoadMetaOfResource(XmlDocument document)
        {
            var files = document.SelectNodes("/root/file");

            foreach (var file in files)
            {
                var element = file as XmlElement;
                var meta    = new ResourceMetaData();
                meta.RelativePath = element.GetAttribute("path");
                meta.MD5          = element.GetAttribute("md5");

                var dependencies = element.SelectNodes("dependency");

                if (dependencies != null && dependencies.Count > 0)
                {
                    meta.Dependencies = new List <string>();
                }

                foreach (var dependency in dependencies)
                {
                    meta.Dependencies.Add((dependency as XmlElement).GetAttribute("path"));
                }
                metaOfResource[meta.RelativePath] = meta;
            }
        }
        private static void LoadMetaOfResource(XmlDocument document)
        {
            var files = document.SelectNodes("/root/file");
            foreach (var file in files)
            {
                var element = file as XmlElement;
                var meta = new ResourceMetaData();
                meta.RelativePath = element.GetAttribute("path");
                meta.MD5 = element.GetAttribute("md5");

                var dependencies = element.SelectNodes("dependency");

                if (dependencies != null && dependencies.Count > 0)
                    meta.Dependencies = new List<string>();

                foreach (var dependency in dependencies)
                {
                    meta.Dependencies.Add((dependency as XmlElement).GetAttribute("path"));
                }
                metaOfResource[meta.RelativePath] = meta;
            }
        }