Patent ID: 7844956

Claim:
A computer-implemented method, executed by a central processing unit (CPU), for application-specific object-oriented processing of a markup by a model instance associated with a class Model and a plurality of element instances, each of said plurality of element instances associated with a class Element, said class Model is configured to process instances of said class Element, comprising the steps of: responding to a construct-element request, said construct-element request is a member function of said class Model, dispatched to said model instance, in which a tag name is provided, said tag name corresponding to a tagged element from said markup, constructing a new element instance, one of said plurality of element instances, according to application-specific requirements as determined according to said tag name, performing application-specific processing as required, and returning said constructed new element instance; responding to an accept-attribute request, said accept-attribute request is a member function of said class Element, dispatched to one of said plurality of element instances, in which an attribute is provided, said attribute corresponding to a markup attribute of a tagged element from said markup, and performing application-specific processing as required; responding to an accept-element request, said accept-element request is a member function of said class Element, dispatched to one of said plurality of element instances, in which a child element instances, one of said plurality of element instances, is provided, and performing application-specific processing as required; and responding to an accept-root-element request, said accept-root-element request is a member function of said class Model, dispatched to said model instance, in which a root element instance, one of said plurality of element instances, is provided, and performing application-specific processing as required.