Jak dodać atrybuty dla serializacji C # XML

Mam problem z serializowaniem i obiektem, mogę go zmusić do utworzenia wszystkich poprawnych wyników, z wyjątkiem sytuacji, gdy mam element, który potrzebuje wartości i atrybutu. Oto wymagane wyjście:

<Root>
  <Method>Retrieve</Method>
  <Options>
    <Filter>
      <Times>
        <TimeFrom>2009-06-17</TimeFrom>
      </Times>
      <Document type="word">document name</Document>
    </Filter>
  </Options>
</AdCourierAPI>

Mogę to wszystko zbudować, ale nie mogę znaleźć sposobu na ustawienie atrybutu Typ dokumentu, tutaj jest segment klasy obiektu

[XmlRoot("Root"), Serializable]    
public class Root    
{    
    [XmlElement("Method")]    
    public string method="RetrieveApplications";    
    [XmlElement("Options")]    
    public _Options Options;    
}    
public class _Options    
{
    [XmlElement("Filter")]    
    public _Filter Filter;    
}
public class _Filter    
{
    [XmlElement("Times")]    
    public _Times Times;    
    [XmlElement("Documents")]    
    public string Documents;    
}

co daje mi:

<Document>document name</Document>

zamiast:

<Document type="word">document name</Document>

ale nie mogę znaleźć sposobu, aby to poprawić, proszę doradzić.

Dzięki

questionAnswers(3)

yourAnswerToTheQuestion