I have created a xml rule, which finds two occurences of the error code in a xml file.
Both error are reported on line -1.
Steps to reproduce:
1. Download the the attached file.
2. Unzip the file
3. Modify build.xml in the created directory to update the path to your pmd libs directory
4. Run build.xml
5. You should see similar output to build.output