[NTG-context] handling code in XML