Update toxml.py

Uses XML parser instead of writing out XML in plain text. Also, grabs signature version from conf/versions.xml instead of hardcoded.