{iframe:src=http://update.sonarsource.org/plugins/xml.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe} |
This plugin enables analysis of XML files within Sonar.
Some common use cases are:
To launch a Sonar analysis of your XML project, use the Sonar Runner.
A sample project is available on github that can be browsed or downloaded: /projects/languages/xml/xml-sonar-runner.
Maven and Ant can also be used to launch analysis on XML projects.
Files can be validated against specific schemas thanks to the XML Schema Validation rule.
Within the same project some files can be validated against schema 'S1', others against schema 'S2', others against schemas 'S3' and 'S4', and so on. So, this rule has to be copied and configured as many times as you have pairs of files/schemas.
Notes:
The XPath rule allows to define custom rules on XML documents using XPath expressions.
Within the same project some files can be checked against XPath rules 'R1', 'R2', etc., others against rules 'R6', 'R7', etc. and so on. So, this rule has to be copied and configured as many times as you have pairs of files/rule.
See Metrics documentation page.