Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 8. Alternative API: SAX

Chapter 8. Alternative API: SAX

In the previous chapter you learned how to use DOM, an object-based API for XML parsers. This chapter complements the discussion on XML parsers with an introduction to SAX.

You will see that SAX

  • Is an event-based API.

  • Operates at a lower level than DOM.

  • Gives you more control than DOM.

  • Is almost always more efficient than DOM.

  • But, unfortunately, requires more work than DOM.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial