If the tags didn\'t give it away, I\'m working with C#\'s XmlSerializer class.
Say, for example, I have a Person class with various properties including age (int), name
If you have a list of Person objects and only want to serialise some of them, then just filter out the ones you don't need. For example:
Person
List people = GetPeople(); //from somewhere List filteredPeople = people.Where(p => !p.Deceased);
Now you only need to serialise filteredPeople.
filteredPeople