I am having trouble deserializing XML. I get AccountInformation to work but it won't work with the Leauge elements. The XML doesn't contain any tag for "Leauges" and I don't want to add that tag to get it to work. Is there any other way to "fix" it? I have tried diffrent solutions but the deserialized result of the leauges comes back empty. What am I missing?

Any help appreciated!

Se my code below:

*Update:*

I have modified the code and the XML but I won't work anyway. What am I missing here?

```c#
[Serializable]
[XmlRoot(ElementName = "LeaugeCollection", Namespace = "")]
public class LeagueCollection
{
    [XmlArray("Leagues")]
    [XmlArrayItem("League",typeof(League))]
    public  League[] League { get; set; }

    [XmlElement(ElementName = "AccountInformation")]
    public string AccountInformation { get; set; }

}

[Serializable()]
public class League
{
    [XmlElement(ElementName = "Id")]
    public int Id { get; set; }

    [XmlElement(ElementName = "Name")]
    public string Name { get; set; }

    [XmlElement(ElementName = "Country")]
    public string Country { get; set; }

    [XmlElement(ElementName = "Historical_Data")]
    public string Historical_Data { get; set; }

    [XmlElement(ElementName = "Fixtures")]
    public string Fixtures { get; set; }

    [XmlElement(ElementName = "LiveScore")]
    public string Livescore { get; set; }

    [XmlElement(ElementName = "NumberOfMatches")]
    public int NumberOfMatches { get; set; }

    [XmlElement(ElementName = "LatestMatch")]
    public DateTime LatestMatch { get; set; }
}

```

Deserialize code:

```c#
public static void Main(string[] args)
    {
        XmlSerializer deserializer = new XmlSerializer(typeof(LeagueCollection));

        TextReader reader = new StreamReader(@"C:\XmlFiles\XmlSoccer.xml");
        object obj = deserializer.Deserialize(reader);
        LeagueCollection XmlData = (LeagueCollection)obj;
        reader.Close();
    }

```

[Link to XML:](http://imagebin.ca/v/2B5fCJr1YvwP)

Thanks in advance!