DOM vs SAX Parser


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: DOM vs SAX Parser

  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,663
    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.

  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,663
    Here are some links for you to read.

    http://www.google.com/search?hl=en&q...=Google+Search

Similar Threads

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

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center