Implement streaming tree parser