public override string GetAttribute (string name)
{
// This is MS.NET bug which returns attributes in spite of EndElement.
if (isEndElement || current == null)
return null;
if (NodeType == XmlNodeType.XmlDeclaration)
return GetXmlDeclarationAttribute (name);
else if (NodeType == XmlNodeType.DocumentType)
return GetDocumentTypeAttribute (name);
if (ownerLinkedNode.Attributes == null)
return null;
XmlAttribute attr = ownerLinkedNode.Attributes [name];
if (attr == null)
return null;
else
return attr.Value;
}