1. A method for the direct execution of an XML-document, comprising: defining the local behavior and process for each element of the XML-document; integrating executable instructions with at least one XML-document or a document type definition (DTD); and storing intermediate states of the execution process by dynamically creating and redefining element attributes.