DOM SAX Parser Differences

4,047 views · Published 31 January 2014 · 2:40 · Indexed 23 September 2026

Channel: Interview DOT · 2014 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. DOM SAX Parser Differences
DOM SAX Parser Differences

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Difference between DOM Parser vs SAX Parser ? Java Interview Question And Answer ?

Difference between DOM Parser vs SAX Parser :

1.Parsers are fundamental xml components, a bridge between XML documents and applications that process that XML. 

2.The parser is responsible for handling xml syntax, checking the contents of the document against constraints established in a DTD or Schema.
DOM vs SAX parser

    Parsers are fundamental xml components, a bridge between XML documents and applications that process that XML. The parser is responsible for handling xml syntax, checking the contents of the document against constraints established in a DTD or Schema.
    DOM SAX
    1. Tree of nodes 1. Sequence of events
    2. Memory: Occupies more memory, preffered for small XML documents 2. Doesn't use any memory preferred for large documents
    3. Slower at runtime 3. Faster at runtime
    4. Stored as objects 4. Objects are to be created
    5. Programmatically easy, since objects 5. Need to write code for creating objects are to reffered
    6. Ease of navigation 6. Backward navigation is not possible as it sequentially processes the document

More from this channel