Parsing tags out of the stream