I want to analyze XML files in sonarqube and want to write custom rules with XPath.
If i use the default XML rules, it works and i get a response in form of an error. But if i write my own rules i get no respone.
I created a new Qualityprofile and activated my rules.
One of my rules looks like this:
//CONTENT/CHAR_DATA/TOKEN[@tokenValue=‘8.0.50727’]
With this rule i wanna check if the ProductVersion is correct. In the sslr-xml-toolkit-1.2 it works.
Is there something in the settings what i’ve missed? Or is my rule wrong?
My syntax tree looks like this:
My rule in sonarqube: