i need to deserilize an XML file, which has a variable structure. Two example's:
<xml>
<OrgUnit GUID="1111">
<OrgUnit GUID="2222">
<OrgUnit GUID="3333" />
<OrgUnit GUID="4444" />
...
</OrgUnit>
</OrgUnit>
</xml>
<xml>
<OrgUnit GUID="1111" />
<OrgUnit GUID="2222" />
<OrgUnit GUID="3333">
<OrgUnit GUID="4444" />
<OrgUnit GUID="5555" />
</OrgUnit>
</xml>
...
As you can see, the element names are always the same. The problem is, that the nesting of the elements varys all the time. Is there any way to implement this with XmlSerializer?