Use structured error handler for XML parsing too
Use structured error handler for XML parsing too

Do it for consistency: error messages when parsing will now use the same
format as those generated when opening the file. They also contain more
information.

vslavik/xmlwrapp,vadz/xmlwrapp,vslavik/xmlwrapp,vadz/xmlwrapp,vadz/xmlwrapp,vslavik/xmlwrapp