• You'd have to be able to extract the value of the node reliably, with something like XQUERY, take that and encrypt it. However, the result would be binary, and I'm not sure to what extent the binary result would cause problems in the XML schema and need escapes.

    Of course, the encrypted binary string would need to then update the node inside the XML document.