C. Mobilizing technique
We now describe our techniques for web page mobilization. First, we extract the original web page content from the server (essentially HTML). Then, the mobilizer parses this HTML content, to build the component hierarchy tree of the document (the PHP-based Simple HTML DOM Parser project performs a similar task [13]). For a typical web page that follows the W3C standards [12], is the root node, and and are its only two children. All the attributes, such as IDs, names, classes, and actions, are stored as values within this node. JavaScript code and
style-sheets are also kept as tree nodes in this component hierarchy. After construction of this component-based hierarchy tree, developers can select tree nodes using their IDs, names, or even class names. The mobilizer then uses component IDs to locate a specific component because these IDs are always unique within a single web page. Stored mappings between URL and IDs indicate to the mobilizer the parts that should be kept and eliminated.