Implement streaming for YAML documents