Check the command error code and do not try to parse its output or generate empty XML instead. Something like that:
#!/bin/bash
FILE=svn_log.xml
svn log --xml > "${FILE}" 2>/dev/null
RET=$?
if [ $RET -ne 0 ]; then
(cat <<EOF
<?xml version="1.0"?>
<log>
</log>
EOF
) > "${FILE}"
fi
cat "${FILE}"
user405725
source
share