Read() public static method

public static Read ( XmlDocument xml ) : Orthography
xml System.Xml.XmlDocument
return Nuve.Orthographic.Orthography
Exemplo n.º 1
0
        private Orthography ParseOrthography(string dataXml)
        {
            var xml = new XmlDocument();

            xml.LoadXml(dataXml);
            return(OrthographyReader.Read(xml));
        }
Exemplo n.º 2
0
        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: ");
            }
        }