Parse XML to dynamic object in C#
<? xml version="1.0" encoding="utf-8" ?> < contacts > < contact id = '1' > < firstName > Michael </ firstName > < lastName > Jordan </ lastName > < age > 40 </ age > < dob > 1965 </ dob > < salary > 100.35 </ salary > </ contact > < contact id = '2' > < firstName > Scottie </ firstName > < lastName > Pippen </ lastName > < age > 38 </ age > < dob > 1967 </ dob > < salary > 55.28 </ salary > </ contact > </ contacts > public class XmlToDynamic { public static void Parse(dynamic parent, XElement node) { if (node.HasElements) { if (node.Elements(node.Elements().First().Name.LocalName).Count() > 1) { //list var item = new ExpandoObject(); var list = new List<dynamic
the most effective way to invest your savings is
ReplyDeleteproperties for rent in dubai
Properties For Sale In Dubai
property for sale in downtown dubai
property for rent in palm jumeirah
apartments for rent in palm jumeirah
property for rent in downtown dubai
villas for rent in dubai
villas for sale in dubai
property for sale in burj khalifa dubai
apartments for rent in palm jumeirah
apartments for sale in burj khalifa dubai
Apartments for sale in Dubai Hills Estate
Thanks to the blogger for sharing this link.
ReplyDeleteSQL Server Load Soap API
This blog is very knowledgeable .Thankyou for writing this blog .Dreamsoft Consultancy is one of the Leading Company in India who Provide Genuine Experience Certificate in Pune. So Contact here and Get all Details. Contact Us with Get all Details- 9599119376 or check Our Website- https://experiencecertificates.com/experience-certificate-provider-in-Gurgaon.html
ReplyDelete