construct xml input stream param stream input stream wrap param tag tag start read param length expect length input stream param event space number charact read fire progress event xml input stream input stream stream tag length event space stream tag tag end tag tag attribut child 