Add XML annotation functions