1. A method for validating an XML document, comprising: parsing at least one XML document to be validated and representing XML data in the at least one XML document as data objects in at least one data object model in a memory; parsing at least one rule document and creating a rule object model comprising rule objects in the memory; extracting part of the data objects from the at least one data object model and extracting part of the rule objects from the rule object model; searching an execution context for at least one rule object of the extracted part of the rule objects from a context registry; performing validation for the at least one rule object in the execution context; and performing a partial validation in a corresponding execution context comprising validating the extracted part of the data objects based upon the extracted part of the rule objects.