CoolInterview.com - World's Largest Collection of Interview Questions
 Interview Questions  
 Our Services  

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!


    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS LANGUAGES XML DETAILS
    Question :
    What are the differences between SAX and DOM parsers?



    Category XML Interview Questions
    Rating (0.0) By 0 users
    Added on 7/19/2006
    Views 982
    Rate it!
    Answers:

    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.





    If you have the better answer, then send it to us. We will display your answer after the approval.
    Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    What parser would you use for searching a huge XML file?

    View Answer
    When a XML file has a DTD declared which is not accessible to the parser, what would happen?

    View Answer
    How can u create an XML file?

    View Answer
    Other than XML/XSLT, what are other web services.

    View Answer

    Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

    Notify me when better answer is posted!
    Email:

    View ALL XML Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2009 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions
    Page URL: http://www.coolinterview.com/interview/6167/default.asp?cachecommand=bypass


    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | Joke of the Day

    0.52