Document Object Model

Document Object Model is a form of representation of structured documents as an Object oriented model. DOM is the official World Wide Web Consortium (W3C) standard for representing structured documents in a platform- and language-neutral manner.

DOM was initially supported by web browsers to manipulate elements in a HTML document. DOM was a way of dynamically accessing and updating the content, structure and style of documents. Owing to incompatibilites in the DOM implementation between different browsers, the W3C came up with standard specifications for DOM. The foundation of the specifications was based on XML which at the time was emerging as a competitor to HTML in the area of structured languages.

DOM doesn't put restrictions on what the document's underlying data structure is. A well-structured document can take the tree form using DOM. Most XML parsers (e.g., Xerces) and XSL processors (e.g., Xalan) have been developed to make use of the tree structure. Such an implementation requires that the entire content of a document be parsed and stored in memory. Hence, DOM is best used for applications where the document elements have to be randomly-accessed and manipulated. For XML-based applications which involve a one-time selective read/write per parse, DOM presents a considerable overhead on memory. The SAX model is advantageous in such a case in terms of speed and memory consumption.

The custodian of the DOM is the World Wide Web Consortium (W3C). The current DOM specification is Level 2. Level 1 specification allowed for navigation of an HTML or XML document and to manipulate content. Level 2 came up with XML Namespace support, filtered views and events. Level 3 specification is (as of 2003) a working draft and still under development at the W3C.

Web-browser incompatibilities

A different DOM implementation from Microsoft has led to creating inter-operability problems for web browsers.

As Microsoft's Internet Explorer browser is, as of 2002, the de-facto standard web browser, this poses real problems for the developers of more standards-compliant browsers such as Mozilla. If they adopt the Microsoft extensions to the DOM, they risk losing any credibility in their calls for web-sites to become standards-compliant, and if they do not, they risk alienating their users by losing much or all of the content of web-sites which use the non-standard extensions. Cynics regard this as another case of Microsoft applying embrace, extend and extinguish tactics. This could be considered ironic, as both Microsoft and Netscape were guilty of supplying non-standard features in an arms-race for standards control, and Mozilla was born out of a Netscape initiative.

The general consensus appears to be that this will only change if new standards-compliant browsers gain a significant market-share on the Web, thus making the use of non-standard extensions a commercial problem for the authors of non-standards-compliant websites.

Internet Explorer 7.0 is rumoured to be likely to be more standards-compliant in its implementation of the DOM, but is unlikely to pull support for the current proprietary DOM extensions.

See also

  • SAX - a set of APIs for accessing and manipulating XML documents in a sequential manner.
  • JDOM - a Java-based document object model for XML that integrates with DOM and SAX and uses parsers to build the document.

External Links:


In the News

Irregular arm swing may point to Parkinson's disease
Irregular arm swings while walking could be an early sign of Parkinson's disease, according to neurologists who believe early detection may help physicians apply treatments to slow further brain cell damage until strategies to slow disease progression are available.

Device Traps, Disables Harmful Bacteria
Engineers from Washington University in St. Louis and the University of Colorado at Boulder have removed bioaerosols -- airborne biological particulate matter -- from the air of a hospital therapy pool using a new generation of hybrid filters. The bioaerosols identified in the unnamed Midwestern hospital pool had sickened nine lifeguards who had become ill with hypersensitivity pneumonitis, a lung condition that mimics pneumonia symptoms.

Low Birth Weight Linked To Psychological Distress In Adulthood
Low birth weight is associated with adult psychological distress. The research found that children born full term but weighing less than 5.5 lbs had a 50% increased risk of psychological distress in later life. This remained the case after taking into account potential confounding factors, such as the father's social class, maternal age and adult marital status.

U.S. Food and Drug Administration: Recalls, Market Withdrawals, and Sa
The U.S. Food and Drug Administration (FDA) provides information about "the most significant product actions of the last 60 days, based on the extent of distribution and the degree of health risk. The recalls on the list are mainly Class I [reasonable probability that the use of or exposure to product will cause serious adverse health consequences]."Products include food, drugs, and medical devices. Users may sign up for alerts to stay current.

Nanotechnology Combined With Superconductivity Could Pave The Way For
As the ever-increasing power of computer chips brings us closer and closer to the limits of silicon technology, many researchers are betting that the future will belong to "spintronics": a nanoscale technology in which information is carried not by the electron's charge, as it is in conventional microchips, but by the electron's intrinsic spin.

Ibuprofen Can Slow Lung Disease In Children With Cystic Fibrosis, Stud
The results of a clinical trial indicates that, when used as part of routine therapy, high-dose ibuprofen is safe and effective in slowing down lung disease in children with cystic fibrosis (CF).

Climate conditions in 2050 crucial to avoid harmful impacts in 2100
While governments around the world continue to explore strategies for reducing greenhouse gas emissions, a new study suggests policymakers should focus on what needs to be achieved in the next 40 years in order to keep long-term options viable for avoiding dangerous levels of warming. The study is the first of its kind to use a detailed energy system model to analyze the relationship between mid-century targets and the likelihood of achieving long-term outcomes.

New Study Explores The Evolution Of Male Parental Care And Female Mult
A new study by Joe Yuichiro Wakano and Yasuo Ihara in the August 2005 issue of the American Naturalist investigates a game-theoretical model in which females gain a direct benefit by multiple mating from the paternal care they elicit for their offspring. As a result, various combinations of male parental care and female multiple mating evolve.

Nine Hacks That Will Make You the Master of Your IPhone
Nine ways you can hack your iPhone, ranging from easy (use your existing AT&T business account with your iPhone) to difficult (run Unix command-line utilities).

How The Battle Of Waterloo Could Help Doctors Fight Death From Multip
Waterloo 's battlefield is reigniting the debate about whether modern medicine is always good for you, according to University College London (UCL) scientists who are launching a study of why some critically ill patients recover and others die from multiple organ failure - the number one killer of patients in intensive care.




MP3 Music Downloads

Preview songs, Download Free Music,Burn CDs at ITunes.com
iTunes_RGB_9mm

 


Google




InformationQuickFind.com - Find Information Fast

Links | Privacy Policy | News |