make StreamParser work with newer versions of libxml