public ContextDescriptor GenerateContextDescriptor(string mergeElement, string filePath) { var doc = new XmlDocument(); doc.LoadXml(mergeElement); var label = doc.SelectTextPortion("entry/lexical-unit/form/text"); return new ContextDescriptor(label, LiftUtils.GetUrl(doc.FirstChild, Path.GetFileName(filePath), label)); }
public ContextDescriptor GenerateContextDescriptor(string mergeElement, string filePath) { var doc = new XmlDocument(); doc.LoadXml(mergeElement); var label = doc.SelectTextPortion("header"); return new ContextDescriptor(label, "unknown"); }