When a file with the .xml extension has been uploaded on my blog (via the Add Media uploader) I would like to automatically replace some attributes.
For example, if I upload a file with this content:
<content creator="foo"></content>
I would like that Wordpress modifies it automatically in:
<content creator="bar"></content>
What hook should I use and how?