public override XmlNode GetSingleNode(string path, bool navigateAttributeWise = true) { var xPath = new XPath.XPath(path, navigateAttributeWise); var node = SettingsStorage.SelectSingleNode(SettingsXPathCreator.CreateXPath(xPath)); return(node); }
public override IEnumerable <XmlNode> GetChildNodes(string path, bool navigateAttributeWise = true) { var xPath = new XPath.XPath(path, navigateAttributeWise); var nodes = SettingsStorage.SelectSingleNode(SettingsXPathCreator.CreateXPath(xPath)); if (nodes == null || !nodes.HasChildNodes) { return(new List <XmlNode>()); } return(nodes.ChildNodes.Cast <XmlNode>().ToList()); }