public void WriteXml(XmlWriter writer)
 {
     if (string.IsNullOrEmpty(Type))
         ThrowHelper.ThrowSpecificationViolation("atom:accept element MUST contain value");
     writer.WriteElementString("accept", Type);
 }