Made dom scanner not serialize output before caller requests it
Avoided reconstructing sax filter