In an IETF context the connectivity matrix is for the same purpose.
XOR in UML means: One and only one of the alternatives need to be used.
Choice in YANG allows also to have non of the alternatives if optional.
YANG does also allow to define a kind of "xor" using containers with when statements that are mutually exclusive.
This could be defined in UML using conditional relationships with mutually exclusive conditions; i.e., without using the xor-constraint in UML.