Java developers already had adequate Unicode support, however; and thus Java parsers were a lot faster out the gate.
Nonetheless, it still probably isn’t possible to write a fully conformant XML parser in a weekend, even in Java. There are several dozen XML parsers available under a variety of licenses that you can use.
This makes SAX very fast and very memory efficient (since it doesn’t have to store the entire document in memory).
However, SAX programs can be harder to design and code because you normally need to develop your own data structures to hold the content from the document.
There are two major standard APIs for processing XML documents with Java, the Simple API for XML (SAX) and the Document Object Model (DOM), each of which comes in several versions.