System.Xml.XPath.XPathNavigator.SelectChildren C# (CSharp) Method

SelectChildren() public method

public SelectChildren ( XPathNodeType type ) : XPathNodeIterator
type XPathNodeType
return XPathNodeIterator
        public virtual XPathNodeIterator SelectChildren(XPathNodeType type)
        {
            return new XPathChildIterator(this.Clone(), type);
        }

Same methods

XPathNavigator::SelectChildren ( string name, string namespaceURI ) : XPathNodeIterator

Usage Example

Example #1
2
		protected override void ParseConfiguration(XPathNavigator configurationElement, IXmlNamespaceResolver xmlNamespaceResolver, ContentType contentType)
		{
            //<MinValue>-6</MinValue>
			//<MaxValue>42</MaxValue>
			foreach (XPathNavigator node in configurationElement.SelectChildren(XPathNodeType.Element))
			{
				switch (node.LocalName)
				{
					case MinValueName:
                        int minValue;
                        if (Int32.TryParse(node.InnerXml, out minValue))
                            _minValue = minValue;
						break;
					case MaxValueName:
						int maxValue;
						if (Int32.TryParse(node.InnerXml, out maxValue))
							_maxValue = maxValue;
						break;
                    case ShowAsPercentageName:
                        bool perc;
                        if (Boolean.TryParse(node.InnerXml, out perc))
                            _showAsPercentage = perc;
                        break;
				}
			}
		}
All Usage Examples Of System.Xml.XPath.XPathNavigator::SelectChildren