SonarSource provides static code analysis for XML. Based on our own technology, SonarSource analyzes XML code and finds Code Smells. As with everything we develop at SonarSource, it was built on the principles of depth, accuracy, and speed.
SonarSource's XML analysis capability is available in Eclipse for developers (SonarLint) as well as throughout the development chain for automated code review with self-hosted SonarQube or cloud-based SonarCloud.
SonarSource's XML analysis supports custom rules written in XPath.