This plugin enables analysis of XML files within SonarSonarQube.
Some common use cases are:
- Validation of XHTML files against schemas provided by the W3C (strict, transitional, and others)
- Validation of XML files against a provided XML schema
- Validation of rules in XML files (ex: validate the Maven pom files against coding standards)
- Install the XML plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the Sonar server
Run a Sonar Analysis with the Sonar Runner (Recommended Way)
Run an Analysis with the SonarQube Runner (Recommended Method)
To run an analysis of your XML project, use the Sonar SonarQube Runner.
an Analysis with the other Analyzers
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. SoTherefore, this rule has to must be copied and configured as many times as you have pairs of files/schemas.
Custom Checks Using XPath Expressions
The XPath rule allows you 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 Therefor, this rule has to be copied and configured as many times as you have pairs of files/rule.