How can I convert a List<ExpandoObject> to an XML string in C#?

I want to use a List as a datasource for a Telerik Report but it seems that Telerik Reports don’t currently support this. They do support having XML as a data source, so I am trying to convert my List to an XML string.

I have seen (at Can I serialize an ExpandoObject in .NET 4?) that an individual ExpandoObject can be serialized to an XML string via jsonFx like this:

dim XMLwriter As New JsonFx.Xml.XmlWriter
dim serializedExpando as string =XMLwriter.Write(obj)

How can I serialize the whole list to an XML string?

Source: New Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.