# Custom XML rule not working

**URL:** <https://community.sonarsource.com/t/custom-xml-rule-not-working/9194>\
**Category:** SonarQube Server / Community Build\
**Tags:** xml\
**Created:** [April 24, 2019, 11:34am UTC](https://community.sonarsource.com/t/custom-xml-rule-not-working/9194 "2019-04-24T11:34:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonalidesh](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@sonalidesh](https://community.sonarsource.com/u/sonalidesh)\
**Post date:** [April 24, 2019, 11:34am UTC](https://community.sonarsource.com/t/custom-xml-rule-not-working/9194/1 "2019-04-24T11:34:31Z")

</div>

option1 custom rules created using Track breaches of Xpath Rule does not work. Can ypu give 1 example…  
I am running this with MSbuild

> [@Help with xpath for xml template rules](https://community.sonarsource.com/t/help-with-xpath-for-xml-template-rules/3750/7):
>
> Ok, so the Scanner for MSBuild is passing the correct configuration to the command line scanner that is being executed in the end step. I’m not familiar with custom XPath rules so I can’t be of much more help. Some general suggestions: check that the rule is enabled in the QP, check that the expected QP is being used during the analysis, and check the console output of the end step for any warnings or errors.

---

<div class="post-metadata">

**Author:** ![saberduck](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/saberduck/32/27_2.png) [@saberduck](https://community.sonarsource.com/u/saberduck)\
**Post date:** [April 26, 2019, 1:03pm UTC](https://community.sonarsource.com/t/custom-xml-rule-not-working/9194/2 "2019-04-26T13:03:45Z")

</div>

hello @sonalidesh,

can you please provide more details what have you tried to do and what is not working? Including any relevant files, logs, etc…?

ps. I moved your post to a new topic
