Rendering html and xml encoding it separately.