XMLSerialization

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eBob.com

    XMLSerialization

    I am trying to XML Serialize a user control object. I'm getting the
    infamous "There was an error reflecting type" message. That message doesn't
    really help me but I suspect that the problem is that my user control class
    Inherts from UserControl. I don't really care about serializing any of the
    members of UserControl but I don't know how to tell XML Serializer that.
    Balena (a really excellent book; but some sections of it, like the section
    on XML Serialization, are over my head) suggests that an
    XmlAttributesOv errides object might be the solution. But I can't understand
    if I will have to specify XmlIgnoreAttrib ute for all of the members of
    UserControl, I don't want any of them, or can I just deal with the few
    members of my user control that I do want serialized. In other words, in an
    XmlAttributesOv errides object do you opt in the members you want or opt out
    the ones you don't want?

    Thanks, Bob


Working...