private void FillAttributes ()
{
if (reader.MoveToFirstAttribute ()) {
do {
AttributeSlot slot = GetAttributeSlot ();
slot.Name = reader.Name;
slot.LocalName = reader.LocalName;
slot.Prefix = reader.Prefix;
slot.NS = reader.NamespaceURI;
slot.Value = reader.Value;
} while (reader.MoveToNextAttribute ());
reader.MoveToElement ();
}
}