Return True or False upon generating XML for better error reporting.