SAX : Java Glossary


SAX stands for SAX (Simple API for XML), a parsing technique for XML (extensible Markup Language). It is part of Oracle’s JAXP (Java Api for XML Processing) classes for manipulating XML. It hands you each field one at a time as it parses. In contrast, DOM (Document Object Model) creates a tree. The advantage of SAX is it needs only a small amount of memory to process a large file. The code you need to read an XML file is unbelievably ugly and verbose.

The name SAX also refters to a protocol I proposed in 1985 to replace FTP (File Transfer Protocol) for file transfer. It uses far fewer acks so generates less network congestion and less delay. It’s key features are never throwing away good packets received and restart after a disconnect.

Learning More

Oracle’s Javadoc on SAX package : available:
Oracle’s Javadoc on XMLStreamReader class : available:


book cover recommend book⇒SAX2to book home
by David Brownell 978-0-596-00237-4 paperback
publisher O’Reilly recommended
published 2002-01-03
Using the SAX2 API to process XML.
Australian flag abe books anz abe UK flag
Chinese flag UK flag
German flag abe abe Canadian flag
German flag Canadian flag
Spanish flag Chapters Indigo Canadian flag
Spanish flag abe American flag
French flag abe American flag
French flag Barnes & Noble American flag
Italian flag abe Google play American flag
Italian flag O’Reilly Safari American flag
India flag Powells American flag
UN flag Kobo other stores UN flag
Greyed out stores probably do not have the item in stock. Try looking for it with a bookfinder.

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
no blog for this page
Your face IP:[]
You are visitor number