Restoring the before clause for write to xml