I have an xml document:
<xml>
<duplication>
<file path="C:\Hello\Test.Designer.cs" />
<file path="C:\Hello\Demo.Designer.cs" />
</duplication>
<duplication>
<file path="C:\Hello\Test.cs" />
<file path="C:\Hello\Demo.cs" />
</duplication>
</xml>
So if duplication node contains .Designer.cs file in file child then i want it to remove the entire node. So the output should be:
<xml>
<duplication>
<file path="C:\Hello\Test.Designer.cs" />
<file path="C:\Hello\Demo.Designer.cs" />
</duplication>
</xml>
What would be best way to do it? I would be running that on build pipeline in Azure. So i do not want heavy piece of code.