title: How to create a Sonar rule to parse a custom XML file in Java?
body: <p>We have custom XML files generated from a tool, however, we need to create some rules such as whether an XML element is referenced in other XML files etc. We couldn't find any information on the SonarQube or anywhere else. Anyone has any idea on how to write a Java class to execute a Sonar rule on an XML file?</p>
  
  <p>Thanks in advance.</p>