index xml docs properly like we do json