#Zegnat[qubyte], the better solution may be to not do it streaming, but to grab the full cached resource as a string and work on that. Then you have the option to run it through DOMParser, which should make it a lot more stable. That could have some sort of performance impact of course.