Patent ID: 7962895

Claim:
A machine-implemented method for binding program-defined objects to Document Object Model (DOM) nodes, the method comprising: receiving a request to create a scalable vector graphics (SVG) element instance from an SVG element template, wherein the request comprises a binding name, and wherein the SVG element instance comprises an extensible markup language (XML) code for describing two-dimensional graphics; selecting, from a binding document, the SVG element template using the binding name, wherein the binding document comprises an association between the SVG element template, a node in a SVG DOM tree, and a software object class, wherein the association is written in XML; obtaining, from the binding document, a software object class identifier, wherein the software object class identifier indicates the software object class associated with the SVG element template; obtaining, from the binding document, a node reference indicating the node in the SVG DOM tree associated with the SVG element template; selecting, in the SVG DOM tree, the node that corresponds to the SVG element template using the node reference; creating, in the SVG DOM tree, a clone of the selected node for the SVG element instance; instantiating, in response to the creating, a software object instance of the software object class; and storing data that indicates a binding between the software object instance and the clone.