Add XML snippet