XML encryption

Let D be an XML document, and (e,c) be a (private, public) key pair.
Let D1 be a nodeset in D selected by an XPath P (in particular, D1 may
be a subtree of D).
Is it possible to encrypt D so that everything with the exception of D1
be encrypted and D1 be visible?