[NTG-context] Processing XML: Header and footer, data manipulation