How to write a constraint for xor gate?

In reply to dave_59:

In reply to lalithjithan:
You don’t.

why not, can you explain.