Home Depot Interview Question for Software Engineer / Developers

Comment hidden because of low score. Click to expand.
of 0 vote

SAX can be used only for a sequential processing of an XML document whereas DOM can be used for a random processing of XML docs.

SAX uses call back mechanism and uses event-streams to read chunks of XML data into the memory in a sequential manner. DOM uses a tree representation of the underlying XML document and facilitates random access/manipulation of the underlying XML data.

SAX can be used only for reading XML documents and not for the manipulation of the underlying XML data whereas DOM can be used for both read and write of the data in an XML document.

- sumanthbadethalavr October 04, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
of 0 vote

1. a. DOM stands for Document Object Model.
    b. SAX stands for Simple API for XML.
2. a. DOM reads entire XML file at once.
    b. SAX reads XML file line by line.
3. a. DOM is memory consuming.
    b. SAX is not.
4 a. DOM follows hierarchical model 
   b. SAX follows event based model while reading XML.
5 a. Using DOM we can add,remove update the XML elements
   b. SAX is read only.
and etc
I know these only

- Srinivas April 22, 2014 | Flag Reply

Add a Comment

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.


is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More


CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More