Potentially you want to learn about XPath. //cc will find all <cc> nodes, wherever they live.
In reply to Re^7: Substitution for braces by Corion in thread Substitution for braces by gem555