Add XML metadata writer