The value of ErrorContext should be the number of lines to show on either side of the line in which the error occurred. This method registers handlers for the various events. This may be called from within a handler, after the parse has started. Setting a handler to something that evaluates to false unsets that handler. This event is generated when an XML start tag is recognized.
Element is the name of the XML element that is opened with the start tag.
This event is generated when an XML end tag is recognized. There is always a lower level start and end handler installed that wrap the corresponding callbacks. This is to handle the context mechanism. This event is generated when non-markup is recognized. The non-markup sequence of characters is in String.