Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Why DOM Parser would take more Memory than SAX parser
while they are parsing?

Answers were Sorted based on User's Feedback



Why DOM Parser would take more Memory than SAX parser while they are parsing?..

Answer / sandya

Both SAX and DOM are used to parse the XML document. Both
has advantages and disadvantages and can be used in our
programming depending on the situation

SAX:

1. Parses node by node

2. Doesnt store the XML in memory

3. We cant insert or delete a node

4. Top to bottom traversing

DOM

1. Stores the entire XML document into memory before processing

2. Occupies more memory

3. We can insert or delete nodes

4. Traverse in any direction.

If we need to find a node and doesnt need to insert or
delete we can go with SAX itself otherwise DOM provided we
have more memory.

Is This Answer Correct ?    11 Yes 1 No

Why DOM Parser would take more Memory than SAX parser while they are parsing?..

Answer / guest

DOM Parser loads the entire xml data model into the memory
where as sax dont.


Is This Answer Correct ?    6 Yes 1 No

Why DOM Parser would take more Memory than SAX parser while they are parsing?..

Answer / paven

Dom parser has to read all the thinges in xml so it takes
more memory and time where as sax parser takes data of our
wish so less time and memory

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

What is the initial state, When a thread is created and started?

3 Answers  


what is handle?

0 Answers  


Brief description about local interfaces?

0 Answers  


whats is mean by class.forName() whats the return type of class

3 Answers   SolutionNET,


Name the eight primitive java types.

0 Answers  


To what value is a variable of the string type automatically initialized?

0 Answers  


what is domain,give me some brief information about that?

1 Answers  


What is meant by Superconductivity?

4 Answers  


what is the diffrence between banking and insurance domain?

2 Answers  


what is catalina in tomcat server.

11 Answers   IBM,


how can we load a file of a user in the database table?

3 Answers   ITC Infotech,


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

0 Answers  


Categories