What are the rules and tax implications of house swapping in Spain?

What are the rules and tax implications of house swapping in Spain?
Home exchanges are becoming an increasingly popular way of having a cheap holiday in Spain, but what are the rules and regulations surrounding the practice, and are there any tax implications?