A method, apparatus, and medium are provided for providing a custom view
of a set of user-interface elements (UI elements) to a requesting
component. The method includes representing the UI elements as a raw tree
structure composed of a set of nodes, which correspond to the UI
elements; identifying a subset of the nodes that satisfy the
condition(s); and communicating to the requesting component a
representation of all or some of the identified nodes. The apparatus
includes a request-transmission component for submitting to an interface
component instructions and a transmission-reception component for
receiving from the interface component the information associated with
one or more UI elements that satisfy the one or more conditions.