Exporter XML

var xmlDoc = new XElement("TestPoints",
                from test in g.dc.users
                select
                new XElement("TestPoint",
                    new XElement("Id", test.id_user),
                    new XElement("Value", test.username)
                    )
                );
            xmlDoc.Save("test.xml");
Eager Elk