Streaming XML generation library