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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the font and fontmetrics classes?

1149


Can I run seam outside of jboss as?

1073


Do we need to override service() method

1722


What is the argument type of a programs main() method?

1113


How task's priority is used in scheduling?

2293


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

1044


What is the purpose of the wait() method?

1189


Why use a datasource when you can directly specify a connection details?

1022


Explain RMI Architecture?

1092


how to use debug in my elipse to solve problems that exist in my project

2276


What is a session? Can you share a session object between different theads?

972


What is the purpose of the notifyall() method?

1041


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2992


Why are component architectures useful?

1056


What is permgen or permanent generation?

1021