I really don't get the supposed problem with this.
Steaming XML is a mature thing, libraries in most every language for decades. Oh! you had to add a "UTF-16LE", the suffering is real...
How is this hell? Did you want streaming json? it would end up being essentially the same code. YAML has to be it! (Is there a streaming parser?)
This totally feels like conjured drama.