Fix documentation of xor in classes

See Redmine #2262.
(cherry picked from commit 9fff52a77095b5684297f0dc4d45d93f4e5ad462)