Use XmlIgnoreAttribute to do it statically, as others have advised.
You can also do this dynamically. Suppose you have a serializable Name property . Then the following:
[XmlIgnore]
public bool NameSpecified {
get {
}
}
getter true, XML-, . NameSpecified [XmlIgnore], .