Hi
I have a c# class defined as follows:
[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://schemas.microsoft.com/wix/2003/01/wi")
[System.Xml.Serialization.XmlRootAttribute(Namespac e="http://schemas.microsoft.com/wix/2003/01/wi", IsNullable=false)]
public class Registry
{
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Key;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public RegistryRoot Root;
}
When I serialize this class the Root attribute is not being serialized and
the Key attribute is! The above is just a snippet of the whole class
definition. The code to serialize the class I believe to be sound and I am
setting both the Key and Root properties to a valid value.
Can anyone help or at least give me ideas of where to start?
Many thanks
Julia Beresford