public static bool MoveToFirstAttributeContent(XPathNavigator navigator) { if (!navigator.MoveToFirstAttribute()) return navigator.MoveToFirstChild(); return true; }
/// <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)); }