improved xml parsing with bytestream parser