A method and system is generally directed to retrieving data from an
external source and binding the data to a structure used in executing a
UI script. The external source may be on a local machine located across a
network. The UI script is transformed to a tree structure. The relevant
portions of the tree structure are cloned and manipulated to insert the
data from the external source. The cloned portions of the tree structure
are then grafted back into the tree. The tree structure is then used to
display the UI corresponding to the UI script that includes the data from
the external source.