Read() public static method

public static Read ( XmlDocument xml ) : Orthography
xml System.Xml.XmlDocument
return Nuve.Orthographic.Orthography
コード例 #1
0
        private Orthography ParseOrthography(string dataXml)
        {
            var xml = new XmlDocument();

            xml.LoadXml(dataXml);
            return(OrthographyReader.Read(xml));
        }
コード例 #2
0
ファイル: LanguageReader.cs プロジェクト: KeliBox/nuve
        private Orthography ReadOrthography()
        {
            try
            {
                string path = _dirPath + _seperator + Resources.OrthographyFileName;

                var       xml    = new XmlDocument();
                XmlReader reader = GetXmlReader(path);
                xml.Load(reader);

                return(OrthographyReader.Read(xml));
            }

            catch (Exception ex)
            {
                throw new InvalidLanguageFileException(ex, Type.Orthograpy, "Invalid language file for orthograpy: ");
            }
        }