Please explain 3 tier xml architecture with diagram