1👍
I managed to sort this out.
An easy way is too look towards heroku for the sample XML file.
instead of running
./manage.py build_solr_schema > schema.xml
locally, run it on Heroku and simply copy and paste the output to your console.
heroku run python manage.py build_solr_schema
Hope this helps
Source:stackexchange.com