Revert "Revert "index.htm changes for xml request""

This reverts commit 68465ee590cd1307bedc6d8170a9a3b86c4a69de.