I tried it, but there are size limitations on how much text we can put in the value field. We are planning to support up to 100 instances and that will need huge XML. The interface is not allowing to save the xml. I am going reduce the instance count to 50 for now.
I think VMware should support custom validations.