Xml validation in payload inspection

Here is the documentation link to custom plugins. You can use either of the supported languages.