Пример #1
0
        private LexiconWordDefinition ReadDefinition(XmlNode node)
        {
            LexiconWordDefinition definition = new LexiconWordDefinition();

            foreach (XmlNode child in node.ChildNodes)
                switch (child.Name)
                {
                    case "w":
                        definition.StrongsNumber = GetAttribute(child, "ID");
                        definition.OriginalLanguage = GetAttribute(child, "lemma");
                        break;
                    case "note":
                        if (GetAttribute(child, "type") == "explanation")
                            definition.Definitions = ReadDefinitions(child);
                        break;
                }

            return definition;
        }
Пример #2
0
 internal void AddEntry(LexiconWordDefinition definition)
 {
     _dictionary[definition.StrongsNumber] = definition;
 }