Allow escaping/unescaping of XML values (to support subtype queries)