FormatElement Event
Reports the XML element that is currently being processed.
Syntax
type TFormatElementEvent = procedure ( Sender: TObject; var StartTagWhitespace: String; var EndTagWhitespace: String; Level: Integer; const Path: String; HasChildElements: Boolean ) of Object;
property OnFormatElement: TFormatElementEvent read FOnFormatElement write FOnFormatElement;
Remarks
Path and Level specify the path to the XML element being processed and its nesting level, respectively.
HasChildElements specify if processed XML element has child elements.
Among other purposes, this event may be used to add whitespace formatting before or after a particular element in the signature.