XML middleware for Ring