private void _readFromNewFormat(XElement xml, bool useNamespaces) { var semanticInfoNodeName = XName.Get(Consts.NodeSemanticInfoName, useNamespaces ? Namespaces.NamespaceLinguistic : ""); var semanticInfo = xml.Element(semanticInfoNodeName) as XElement; var lexicalClassNodeName = XName.Get(Consts.NodeLexicalClass, useNamespaces ? Namespaces.NamespaceLinguistic : ""); LexicalClass = SemanticInfoLexicalClass.ReadFromString(semanticInfo.Element(lexicalClassNodeName).Value); }
private void _readFromOldFormat(XElement xml) { LexicalClass = SemanticInfoLexicalClass.ReadFromString(xml.Element(Consts.NodeLexicalClass).Value); }