DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2007
    Posts
    52

    DOM vs SAX Parser

    Guys,

    In my interview I said in DOM parser we load the whole document before manipulating it while in SAX parser we don't need to load the whole document.

    The interviewer started asking me if in SAX parser, we need to load atleast little bit in order to manipulate?

    What is the answer to that?

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,652
    This is my understanding.

    The DOM parser always reads the whole xml document.

    In contrast, the SAX parser works incrementally and generates events that are passed to an application.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    May 2007
    Posts
    52
    I am not convinced with the answer. Can someone else please explain?

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,652
    Here are some links for you to read.

    http://www.google.com/search?hl=en&q...=Google+Search
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 2
    Last Post: 11-22-2001, 06:25 AM
  2. Replies: 0
    Last Post: 09-17-2001, 03:59 PM
  3. DOM & SAX Tutorials
    By kellie in forum xml.announcements
    Replies: 0
    Last Post: 09-06-2001, 02:35 PM
  4. Replies: 1
    Last Post: 04-16-2001, 02:05 PM
  5. SAX Parser
    By rajeev in forum XML
    Replies: 2
    Last Post: 07-14-2000, 07:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links