MoveToNextAttributeContent() public static méthode

If navigator is positioned on an attribute, move to the next attribute node. If there are no more attributes, move to the first content node. If navigator is positioned on a content node, move to the next content node. If there are no more attributes and content nodes, return null. Otherwise, return navigator.
public static MoveToNextAttributeContent ( XPathNavigator navigator ) : bool
navigator System.Xml.XPath.XPathNavigator
Résultat bool
Exemple #1
0
 /// <summary>
 /// Position the iterator on the next child content node with a matching node kind.  Return true if such a child
 /// exists and set Current property.  Otherwise, return false (Current property is undefined).
 /// </summary>
 public bool MoveNext()
 {
     if (_needFirst)
     {
         _needFirst = !XmlNavNeverFilter.MoveToFirstAttributeContent(_navCurrent);
         return(!_needFirst);
     }
     return(XmlNavNeverFilter.MoveToNextAttributeContent(_navCurrent));
 }