Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects simply to a non-technical, business audience. Over…
The Simple API for XML (SAX) is a programming interface that acts as an event-based sequential access parser application programming interface (API) for XML documents. It provides an abstract interface in which the XML information set (infoset) is processed in a linear sequence of method calls.
SAX is a de facto standard that was released on May 11, 1998. The project was started by parser authors Tim Bray and David Megginson, and the initial draft was developed by Megginson.
SAX provides a streaming interface in which applications get the infoset from XML documents in a linear and continuous stream. Previously accessed data cannot be reread, because SAX is unidirectional and does not allow for backtracking. SAX conducts a search of large documents to fetch small pieces of information. It also provides a mechanism to abort the process once the information is located. SAX is a simpler and faster interface than the document object model (DOM).
The benefits of using SAX are as follows:
Although there are many benefits to adopting SAX technology, it has its own set of drawbacks:
SAX was initially developed as a joint effort by the members of the XML-DEV mailing list. The SAX project was recently shifted to the SourceForge project infrastructure. This was done to continue the further development and maintenance of SAX.
Techopedia’s editorial policy is centered on delivering thoroughly researched, accurate, and unbiased content. We uphold strict sourcing standards, and each page undergoes diligent review by our team of top technology experts and seasoned editors. This process ensures the integrity, relevance, and value of our content for our readers.
Margaret is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages.
What is an API Call? An API (Application Programming Interface) Call is a request made by a software application to...
Marshall GunnellIT & Cybersecurity Expert
What Does Cross-Cutting Concern Mean?An application programming interface (API), in the context of Java, is a collection of prewritten packages,...
Margaret RouseTechnology Expert
What Does DevRel (DeveloperRelations) Mean?Developer Relations (DevRel) is a strategic approach to improving business-to-business (B2B) communications between a software company’s...
Trending NewsLatest GuidesReviewsTerm of the Day