Ensure XML directive is outputed when generating XML.