We started working with MSBuild recently and I had to write my own task for selecting XML nodes out of documents. Here's an article that covers my experience in detail complete with source code for the Task.