Beispiel #1
0
        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);
        }
Beispiel #2
0
        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());
        }