How to generate xml report using CPD (Copy Paste Detector)?
<p>I am using the CPD tool to find the Duplicate codes in my project. I have tried the command line options as given in this link <a href="https://pmd.github.io/pmd-5.5.0/usage/cpd-usage.html" rel="nofollow">CPD Usage</a>.
I want to generate the report in xml format and need to store it in a particular location. But it is showing the report in console itself and not store it anywhere. <a href="http://i.stack.imgur.com/V5p2C.png" rel="nofollow">Refer this screenshot.</a></p>

<p>I tried this in CPD GUI and worked properly. But for my need i want to generate the report in xml file. Is this possible?</p>

<p>In the above link, they have given the information for ANT tool. So is there any way to do this in MSBuild tool?</p>