Validate against XSD instead of DTD, do not write link to DTD
Write XML with UTF-8 encoding
Handle SAX exceptions in XML reader