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; }
internal void AddEntry(LexiconWordDefinition definition) { _dictionary[definition.StrongsNumber] = definition; }