PI Event
Fired when a processing instruction section is encountered.
Syntax
public event OnPIHandler OnPI; public delegate void OnPIHandler(object sender, XmlPIEventArgs e); public class XmlPIEventArgs : EventArgs { public string Text { get; } }
Public Event OnPI As OnPIHandler Public Delegate Sub OnPIHandler(sender As Object, e As XmlPIEventArgs) Public Class XmlPIEventArgs Inherits EventArgs Public ReadOnly Property Text As String End Class
Remarks
The PI event is fired whenever a processing instruction section (<? ..text... ?>) is found in the document.
The full text of the processing instruction is provided by the Text parameter.