Xml errors are now correctly reported