Fixed file modes for XML samples
Added `dictize_errors` as an option to validate