internal virtual void SetAttribute(Rhino.Xmlimpl.XmlNode.QName name, string value) { if (!(dom is XmlElement)) { throw new InvalidOperationException("Can only set attribute on elements."); } name.SetAttribute((XmlElement)dom, value); }