Support for Enumerator inputs in the XML lexer.

This fixes #48.