The current XML parsers use an XMLError object to report parsing errors to the client. The new XML parser should also support this.