structured XML output, automatic closing of XML elements on error, and inclusion of error messages in XML output.