Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9301501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:01:59+00:00 2026-06-18T23:01:59+00:00

Document Object Model(DOM) is used for representing xml , html But am not able

  • 0

Document Object Model(DOM) is used for representing xml,html

But am not able to understand why DOM loads everything into main memory.Is it used for enabling us to insert,delete objects in it or is there something else to it..

Also what are it’s advantages that makes it’s use so wide?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T23:02:01+00:00Added an answer on June 18, 2026 at 11:02 pm

    Because to be able to implement a method such as

    document.getElementsByTagName("foo");
    

    you need to have parsed the document completely, and loaded the tree of nodes in memory. You could imaging reparsing the document at every method call, but it would be extremely inefficient.

    What makes it so popular is that it’s a standard API, supported by every language on earth, and which makes it relatively easy to navigate through the nodes and extract the information you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So we all know that the DOM (Document Object Model) is an interface that
HTML has a Document Object Model, which Javascript can then manipulate / move around.
The HTML DOM object model defines an Event object with a target property .
i read this statement from a book i read The Document Object Model or
Say I have an XML document (represented as text, a W3C DOM, whatever), and
I want to create a word 2007 document without using object model. So I
I am new to document object model. Is there any java-doc like thing for
I am using the SP2010 Client Object Model to upload to a document library,
I have a document based application running with core data. The object model has
From this document, Don't do this car = new Object(); car.make = Honda; car.model

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.