# Help with xpath for xml template rules

**URL:** <https://community.sonarsource.com/t/help-with-xpath-for-xml-template-rules/3750>\
**Category:** SonarQube Server / Community Build\
**Tags:** template\_rule, xml\
**Created:** [October 24, 2018, 11:23am UTC](https://community.sonarsource.com/t/help-with-xpath-for-xml-template-rules/3750 "2018-10-24T11:23:03Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![duncanp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/duncanp/32/293_2.png) [@duncanp](https://community.sonarsource.com/u/duncanp)\
**Post date:** [April 24, 2019, 11:16am UTC](https://community.sonarsource.com/t/help-with-xpath-for-xml-template-rules/3750/7 "2019-04-24T11:16:39Z")

</div>

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.

---

_[View the full topic](https://community.sonarsource.com/t/help-with-xpath-for-xml-template-rules/3750)._
