public override bool MoveToFirstAttribute() {
XmlElement element = source as XmlElement;
if (element != null
&& element.HasAttributes) {
XmlAttributeCollection attributes = element.Attributes;
for (int i = 0; i < attributes.Count; i++) {
XmlAttribute attribute = attributes[i];
if (!attribute.IsNamespace) {
source = attribute;
attributeIndex = i;
return true;
}
}
}
return false;
}