what is the difference between SAX Parser and DOM Parser??
Answer Posted / guest
1. sax is an event based parser and raise and event, while
dom is not
2. sax is forward only where as dom can acess both was
forward as well as backwards.
3. sax parses the file as it reads where as the dom loads
the file into memory to parse the file.
4. Sax does not have memory constraints where as the dom
has momory constraints as xml file is loaded into the
momory to parse the file.
5. sax is read only , dom is read and write both.
6. if you have to parse and use the content only once ,
consider using sax if the xml file and content are used
extensively then consider using dom
| Is This Answer Correct ? | 187 Yes | 12 No |
Post New Answer View All Answers
What is java struts?
What is struts and springs in java?
Briefly tell the two kinds of form beans.
Why was reload removed from struts (since 1.1)?
What is the purpose of @result?
Why it called struts?
How to use forward action to restrict a strut application to mvc?
What is the purpose of @doublerangefieldvalidator annotation?
What is the purpose of redirect result type?
What are the conditions for actionform to work correctly?
What is actioninvocation in struts2?
What's mvc pattern ?
Why are frameworks used?
When should we use SwtichAction?
What do you mean by struts.dev mode?