public AttributeFeed Read() { var attributeAssignments = new Collection <AttributeAssignment>(); if (reader.MoveToFirstAttribute()) { do { attributeAssignments.Add(GetAttribute()); } while (reader.MoveToNextAttribute()); reader.MoveToElement(); } ScanSpecialNsAndSetIfNoPreviousValue(attributeAssignments); return(new AttributeFeed(attributeAssignments, specialPrefix)); }