I want to insert data from Matrix to XML. How can I do that?

```
internal static XDocument createData(string[,] banciforxml)
{
    XDocument Bancile = new XDocument();
    Bancile.Add(new XElement("bancks", 
                             banciforxml.Select(x => new XElement("item", x))));
    return Bancile;
}

```