private bool CheckStandalone(int attr)
{
XmlAttributeNode node = _attributeNodes[attr];
if (!node.Prefix.IsEmpty)
XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.Format(SR.XmlMalformedDecl)));
if (node.LocalName != "standalone")
return false;
if (!node.Value.Equals2("yes", false) && !node.Value.Equals2("no", false))
XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.Format(SR.XmlInvalidStandalone)));
return true;
}