Consumes all spaces found and tabulars on the given stream until a different char is found.
This internal function also consumes coments inside the xml read.