Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to export xml in linq c#

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");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #export #xml #linq
ADD COMMENT
Topic
Name
9+6 =