Xml - Interview Questions and Answers for 'Parsers' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Xml - Interview Questions and Answers for 'Parsers' - 3 question(s) found - Order By Newest

  Q1. Difference between SAX and DOM Parser ?Xml
Ans. A DOM (Document Object Model) parser creates a tree structure in memory from an input document whereas A SAX (Simple API for XML) parser does not create any internal structure.

A SAX parser serves the client application always only with pieces of the document at any given time whereas A DOM parser always serves the client application with the entire document no matter how much is actually needed by the client.

A SAX parser, however, is much more space efficient in case of a big input document whereas DOM parser is rich in functionality.

Use a DOM Parser if you need to refer to different document areas before giving back the information. Use SAX is you just need unrelated nuclear information from different areas.

Xerces, Crimson are SAX Parsers whereas XercesDOM, SunDOM, OracleDOM are DOM parsers.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   xml   parsers   sax   dom parser   difference   architecture   technical lead   technical architect  markup language   sax vs dom     Asked in 14 Companies        frequent

Try 1 Question(s) Test


Related Questions

  What is marshalling ?
  What is unmarshalling ?
 Given a String with some Code, Write a Parser to have proper indentation.


 Q2. What is marshalling ?Xml
Ans. Its the process of creating XML structures out of Java Objects which is used to traverse information across the network.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     xml   java api for xml   marshalling   parser   sax   dom   technologies     Asked in 1 Companies


Related Questions

  What is unmarshalling ?


 Q3. What is unmarshalling ?
Ans. Its the process of creating Java Objects out of XML structures.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     xml   java api for xml   unmarshalling   parser   sax   dom   architecture     Asked in 1 Companies


Related Questions

  Difference between SAX and DOM Parser ?
  In what order the elements of a HashSet are retrieved ?
  What is marshalling ?
  If you have access to a function that returns a random integer from one to five, write another function which returns a random integer from one to seven.
  Which of the following is fastest to locate the DOM element ?
 In this url

http://javasearch.buggybread.com/InterviewQuestions/questionSearch.php?searchOption=label&keyword=url

What is protocol , domain , path and query param ?
 Can you name some of the Java frameworks in different domains ?
 What is the difference between RollingFile and RollingRandomAccessFile in log4j ?
 Get all numbers from a collection that are both perfect square and palindome


 Q4. Which of following is not true ?XML
a. Dom Parser loads the whole doument at once in memory
b. A DOM Parser is much more memory efficient
c. Dom Parser doesn't load the whole doument at once in memory
d. A SAX Parser is much more memory efficient

Ans.b. A DOM Parser is much more memory efficient


Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: