Hi All,
I am facing issues while deserializing an XML in C#. I am currently using .Net framework 4.6.1.
I am having an XML file which contains a few details which i need to use in my C# WPF application. I am currently facing some issues with regard to this:
I currently have one XML file which i am able to deserialize by mapping all the fields in the XML file to specific classes in the application.
But the problem is that this XML file is not static, it is dynamic. As a result i am not able to map any additional fields in the XML file using the classes that i already have in the application. Hence the deserialization fails in case any additional fields are present in the XML file.
I dont need all the fields in the XML file, i only need about 5 values from the XML file.
Is there any way that this can be made generic so that it will be able to handle the dynamic XML file with the existing classes?
Any help will be appreciated.
Thank you!!
