title: Special getters and setters for XMLSerializer
body: <p>I've got a class which contains a number of resources which are loaded from files. Want to serialize objects of this class to XML but with paths to the resources instead of the actual resources themselves.</p>
  
  <p>Right now I have got around this by creating a number of <code>ResourceSource</code> fields which store the path to the resource and using <code>XMLIgnore</code> on the resources themselves. However, these have to be public which isn't so good.</p>
  
  <p>It would seem that what I really want is to be able to create special property accessors which are only executed by XMLSerialize. Does this feature exist or is there a way I might be able to implement it?</p>
  
  <p>Alternatively, can I set my <code>ResourceSource</code> fields to be accessible only by XMLSerialize?</p>