Extending sonar xml plugin

I would like to add few custom rules for the xml language.
Is there any document on how to create new rules/custom rules for xml.?

Hi,

All we currently support for XML is the XPath template rule.

 
:slightly_frowning_face:
Ann

Hello,

Here is the XPath Rule Template you should instanciate to create your own rule: RSPEC-140 and the related (limited, sorry about that) documentation:

https://docs.sonarqube.org/display/DEV/Adding+Coding+Rules+using+XPath > Adding your Rule to the Server