So which method do you use? If you have strict memory requirements (or are working with extremely large files), then you may be forced to use the Streaming APIs. Otherwise it's your choice between the feature-full Tree API or the smaller, quicker Streaming API.