Convertir un seul XElement en objet

J'ai un seul XElement ressemblant à ceci:

<row flag="1" sect="" header="" body="" extrainfo="0" />

Puis j'ai une classe qui ressemble à ceci:

public class ProductAttribute
{
    public string Flag { get; set; }
    public string Sect { get; set; }
    public string Header { get; set; }
    public string Body { get; set; }
    public string Extrainfo { get; set; }
}

Comment puis-je convertir ce XElement dans un ProductAttribute objet?

source d'informationauteur Numm3n