Delphi Error – W1204 XML comment on ‘%s’ has badly formed XML-‘A name contained an invalid character.’

Delphi Compiler Error

W1204 XML comment on ‘%s’ has badly formed XML-‘A name contained an invalid character.’

Reason for the Error & Solution

This warning message occurs when a name in XML contains an invalid character.

This is an error in XML documentation processing. The XML is not well formed. This is a warning because a documentation error does not prevent building.