In sonarcube , how to ignore false positives in a XML file . What are the possible options?

An issue is detected in the XML file of my project during scanning, and I believe it is a false positive.

//NOSONAR comments do the work in Java.

I have tried using the <!-- NOSONAR --> comment in the XML file, but it did not ignore the issue as expected.
I used it as <!-- NOSONAR --> at the end of the line as this is the way to add comments in XML file.

I have two questions:

  1. Can <!-- NOSONAR --> be used to ignore issues in XML files? If yes, how?
  2. What other solutions or alternatives are available to address false positives in XML files?

Hey there.

As requested in the template post, what version of SonarQube are you using?