SAX and XMLPULL both work well for documents in which the processing is local;that is,where all the information the program needs at one time tends to be close together in the document.Programs that need random access to widely separated parts of the document are often better served by one of the tree-based APIs,such as DOM or JDOM.