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

Laser Treatment For BRVO Is Safer Than Corticosteroid Injections And E
Scientists have found that laser therapy is equivalent to two different dosages of corticosteroid medications for treating vision loss from the blockage of small veins in the back of the eye, a condition known as branch retinal vein occlusion (BRVO). Furthermore, laser treatment was shown to have fewer complications for patients.

Global Warming Increases Oyster Sensitivity To Pollution
Eating oysters on a hot sunny afternoon sounds great, but it may not last forever. Dr. Gisela Lannig from the University of North Carolina, USA, will present her observations on increased cadmium sensitivity in oysters in relation to temperature. Global warming causes a threat to the species as otherwise harmless concentrations of metals become toxic under changing environmental conditions.

Staying Alert During Class: Self-applied Acupressure May Reduce Sleepi
Researchers at the University of Michigan Health System have found that students who were taught to self-administer acupressure treatments to stimulation points on their legs, feet, hands and heads were more alert and less fatigued during class.

Radiation, Chemotherapy With Liver Transplant Improves Cancer Survival
A new treatment for patients with a type of bile duct cancer promises a greater chance at survival by combining radiation, chemotherapy and liver transplantation, Mayo Clinic physicians report in the September issue of the Annals of Surgery.

People At Genetic Risk For Alzheimer's Age Are Mentally Just Like Nonc
Australian researchers say that a genotype that heightens the risk for Alzheimer's disease does not contribute to cognitive change during most of adulthood. The largest study of its kind has found that carriers and noncarriers show the same type and extent of normal age-related cognitive declines, decades before carriers start to more often develop symptoms of dementia. The findings suggest that the higher-risk genotype acts only in later years to layer disease on top of normal aging.

Ethnic Pride May Boost African-American Teens' Mental Health
A study of more than 250 African-American youths from urban, low-income families examined the unique effects of racial identity and self esteem on mental health. Findings reveal that when young people's feelings of ethnic pride rose between 7th and 8th grades, their mental health also improved over that period, regardless of their self-esteem. The researchers also found that racial identity was a stronger buffer against symptoms of depression for boys than for girls.

Implications For The Archaeology Of Warfare In The Andes
Using pre-Columbia Andean South American as a case study, Elizabeth Arkush and Charles Stanish of UCLA further the archaeological debate on the significance of warfare in societal development by re-examining current interpretations of the evidence of ritualized and defensive conflict in the ancient Andes.

Married Adults Are The Healthiest, New CDC Report Shows
A new report from the Centers for Disease Control and Prevention suggests that married adults are healthier than divorced, widowed or never married adults.

First Beehives In Ancient Near East Discovered
Archaeologists revealed that the first apiary (beehive colony) dating from the Biblical period has been found in excavations in Israel's Beth Shean Valley. This is the earliest apiary to be revealed to date in an archaeological excavation anywhere in the ancient Near East, according to the researcher.

Saber-toothed Cat Was More Like A Pussycat Than A Tiger
In public imagination, the sabre-toothed cat Smilodon ranks alongside Tyrannosaurus rex as the ultimate killing machine. Powerfully built, with upper canines like knives, Smilodon was a fearsome predator of Ice-Age America's lost giants. For more than 150 years, scientists have debated how this iconic predator used its ferocious fangs to kill its prey. Results will certainly put in dent in Smilodon's reputation. The innovative computer modeling shows it had a decidedly wimpy bite.




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 |