# File nqxml/tokenizer.rb, line 236 def nextName while @currInput.pos >= @currInput.length @inputStack.pop() @currInput = @inputStack.last end @currInput.string[@currInput.pos .. -1] =~ NAME_REGEX name = $1 if name.nil? str = "expected name but saw illegal non-name character" raise ParserError.new(str, self) end skipChars(name.length) return name end