Sonar xml does not scan new template rule created

I have configured a new rule for .config file in xml language.

temp.config

<?xml version="1.0" encoding="utf-8"?>

<system.web>

</system.web>

XPATH Expression:
/configuration/system.web/sessionState[@mode=“InProc”]@customProvider

  • SonarQube version? 7.4

I have created default xml profile and activated this rule.
I have also modified project properties for xml to use .config, .aspx etc.

While my other .net profile is default, active , with Sonarscanner MSbuild commands when the project is getting built I am hoping that it will also pick up the xml profile and scan the project for .config file
But the code smell is not reported