Hi Mansi,
let $cmd := "/A/*/descendant::C/
descandant
::*[contains(@name,'"|| $n ||"')]”
Just a quick scan - I marked the problem in <bold> above - I would try ‘desc
e
ndant’
instead of 'desc
a
ndant’.
Cheers,
Lukas