I have a complex XML file which has several sub entities inside a main entity now i want to deserialize and map them to objects of the relevant classes
I'm using C# how do i do this?
I have a complex XML file which has several sub entities inside a main entity now i want to deserialize and map them to objects of the relevant classes
I'm using C# how do i do this?
You can use XSD.exe to generate a class for you
http://msdn.microsoft.com/en-us/library/x6c1kb0s(v=VS.100).aspx
You can just pass it an XML file and it will generate the schema and create a class.cs which can be added to your project
This will be different depending on OS and version, but the exe is located at this location on my pc: C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin\