ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

How to match on content within XML tags


Article ID: 160529


Updated On:


Data Loss Prevention Enforce


When searching XML files, I seem to be able to match only on values and not tags.
Removing the XML declaration (e.g. <?xml version="1.0" encoding="UTF-8"
?>) from the file allows the same regex to match on tags.


Under the Monitors Advanced settings, check for the following;

There is the option ContentExtraction.MarkupAsText – turning that to “on” should allow us to match within tags, otherwise they are ignored.