Unable to write NCEI metadata XML