In the first scenario, everything is pretty easy, I have the following XML, that I can deserialize to a strong type.
<providers>
<dprovider>
<dimensions>
<width></width>
</dimensions>
</dbrovider>
In the 2nd scenario, and this is where I need help... I have something a little more dynamic
<providers>
<dprovider>
<dimensions>
<width></width>
</dimensions>
</dbrovider>
<dprovider>
<dimensions>
<height></height>
</dimensions>
</dbrovider>
As you can see the dimensions sub structure is differant in both items, so I need to find a way to create the strongly typed class, so that it can handle any change to the dimensions element, it could for example contain a whole nested sub structure, differant for each dbprovider.
Any ideas on how this is done?>
Thanks