Extract with XOR operator