Ruth Karl wrote: > What am I missing? Could someone please help? Take a look at the XML example on the wiki: http://www.antlr.org/wiki/display/ANTLR3/Parsing+XML Specifically, how it copes with tags: http://www.antlr.org/wiki/display/ANTLR3/1.+Lexer -a