XmlInvalid Event
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
Description
Occurs when a loaded or changed XML document cannot be validated with the document type definition (DTD) referenced in the document. The event handler receives an argument of type XmlErrorEventArgs containing data related to this event.
Syntax
public event XmlErrorEventHandler XmlInvalid;Public Event XmlInvalid As XmlErrorEventHandlerExamples
The following example records useful context when xml invalid occurs.
textControl.XmlInvalid += (sender, e) =>
{
Console.WriteLine($"File Position: {e.FilePosition}");
};AddHandler textControl.XmlInvalid,
Sub(sender, e)
Console.WriteLine($"File Position: {e.FilePosition}")
End Sub