private XElement GetDecendent(string strSourceWord) { var strXPath = MapOfMaps.FormatXpath(SourceWordElement.CstrElementNameSourceWord, SourceWordElement.CstrAttributeNameSourceWord, strSourceWord); return(Xml.XPathSelectElement(strXPath)); }
private XElement GetDecendent(string strSourceWord) { var strXPath = MapOfMaps.FormatXpath(SourceWordElement.CstrElementNameSourceWord, SourceWordElement.CstrAttributeNameSourceWord, strSourceWord); try { return(Xml.XPathSelectElement(strXPath)); } catch (Exception ex) { var strError = ex.Message; Debug.WriteLine(String.Format("while searching for '{0}', error occurred: {1}", strSourceWord, strError)); throw; } }