XmlToDynamic

Transform XML data into a Dynamic object type.

Constructors

public static class XmlExtensions

Methods

public static bool HasMember(ExpandoObject obj, string member)

Test to see if a particular member exists in the XML.

ExpandoObject obj

The ExpandoObject containing the XML to convert into a dynamic type.

string member

The member to search for in the XML.

public static dynamic ParseDynamic(this XmlDocument xml, List<string> listNodes = null)

Parse an XmlDocument into a dynamic type.

XmlDocument xml

The XmlDocument containing the XML to convert into a dynamic type.

List<string> listNodes
Default: null

No idea what this does! ?????.

public static dynamic ParseDynamic(this XDocument xml, List<string> listNodes = null)

Parse an XDocument into a dynamic type.

XDocument xml

The XDocument containing the XML to convert into a dynamic type.

List<string> listNodes
Default: null

No idea what this does! ?????.

Example

C#
XmlDocument x = new XmlDocument();
x.LoadXml("MyFile.xml");

result.DynamicResult = x.ParseDynamic();