public override bool MoveToNextAttribute() { if (_current == null) { throw new InvalidOperationException(SR.OperationInvalidOnAnEmptyDocument); } bool retval = _current.MoveToNextAttribute(); if (retval) { _state = XPathNodeType.Attribute; } return(retval); }