Improved return value of validate_xml. Closes #98.