make StreamParser work with newer versions ob libxml