Why DOM Parser would take more Memory than SAX parser
while they are parsing?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
life cycle of an applet?
Howmany interfaces are used in RMI?
What is RPC?
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?
For which statements does it make sense to use a label?
What are the different class loaders used by jvm?
diff between jsp include directive and jsp action include?
Where does the session Object stores? If 100 users are connecting to the server. How does it recognize which session belongs to which user?
5 Answers HCL, Mobillo Venture,
How would you detect a keypress in a jcombobox?
how team leaders assign work for the team member like through papers,word document
What is meant by multi-threading?
which of the following authentication is stronger than the others? a. Http Basic b. Http DIGEST c. Form based