DOM(redirected from -dom)
Also found in: Dictionary, Medical, Financial, Wikipedia.
Dom(dōm), peak, 14,942 ft (4,554 m) high, Valais canton, S Switzerland, in the Mischabelhörner group. It is the highest peak entirely in Switzerland.
DOM(1) See disk on module.
(2) (Document Object Model) A programming interface (API) from the W3C that lets applications and scripts access the content of HTML and XML documents in a hierarchical tree structure. DOM was introduced in 1998.
A Web Page Looks Like a Tree
The DOM implementation lays out all the HTML tags in the Web page as a hierarchical tree. In 2000, DOM Level 2 (DOM2) gave the programmer a standard way to handle events associated with elements in the tree, such as mouse down, mouse click and mouse over. Events may be preprocessed at any tag location from the top of the tree to the target tag at the bottom of the tree ("capture" phase) and then back up to the top ("bubbling" phase). These phases were implemented to be backward compatible with older Netscape and Internet Explorer browser event handling.
XML Data Looks Like a Database
DOM converts XML documents into a hierarchical node tree in memory that looks like a database record. The node tree allows updating in a similar manner to database updating, making data exchange between XML documents and databases more straightforward. Without DOM turning the document into an object model and handling the updating, the text and tags in an XML document would have to be scanned sequentially and rearranged by the program.
An event such as a text change by the user would be processed by the DOM event model as described earlier in this definition. See DOM implementation, DOM application, SAX and object model.
|Nodes in a DOM Tree|
|DOM converts (parses) an XML document into a hierarchical node tree as in this example. Writing an XML update program is then similar to writing a database update program, using the same kinds of functions available in a database management system.|