|
Normally, a token is defined something like a sequence of symbols from the certain symbol range, for example, a-zA-Z0-9. All other symbols are considered as token separators. This is exactly how regexps work. So, I really don't know what is the point of using partial rather than complete comparisons.
What is also highly strange is that the article considers an HTTP header, not an XML document as an example:
Consider the following snippet of an HTTP header as an example.
Accept: */*
Accept-Language: en-us
Connection: Keep-Alive
Host: localhost
Referer: http://localhost/links.asp
<question remark="shrugging shoulders">
What all this has to do with XML?
</question>
|