Hi Bernd,
Looks like you're on the right track. Try the following code for
instantiating your XmlSerializer.
XmlAttributes attrs = new XmlAttributes();
attrs.XmlIgnore = true;
XmlAttributeOverrides attrOverrides = new XmlAttributeOverrides();
attrOverrides.Add(typeof(Component), "Site", attrs);
attrOverrides.Add(typeof(Component), "Container", attrs);
XmlSerializer serializer = new XmlSerializer(typeof(DerivedFromComponent),
attrOverrides);
Regards,
Ion Vasilian

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
> Hi,
>
[quoted text clipped - 6 lines]
> Thanks,
> Bernd