%% Create Error Handler by Using matlab.io.xml.dom.ParseErrorHandler
% This example shows how to create an error handler by using the abstract class matlab.io.xml.dom.ParseErrorHandler.
%% Create Derived Class
% Define a class that derives from the abstract class matlab.io.xml.dom.ParseErrorHandler.

type MyParseErrorHandler

%
%% Use Derived Handler
% To use the derived handler from this class, assign the handler to the ErrorHandler property of a parsers Configuration property.

p = matlab.io.xml.dom.Parser;
h = MyParseErrorHandler;
p.Configuration.ErrorHandler = h;

% Copyright 2020 The MathWorks, Inc.