module
REXML::XMLTokens
v1_9_3_125 -
Show latest stable
Defines a number of tokens used for parsing XML. Not for general consumption.
Constants
NAME = "([\\\\w:]#{NAMECHAR}*)"
NAMECHAR = '[\\-\\w\\.:]'
NAME_STR = "(?:#{NCNAME_STR}:)?#{NCNAME_STR}"
NCNAME_STR = '[\\w:][\\-\\w.]*'
NMTOKEN = "(?:#{NAMECHAR})+"
NMTOKENS = "#{NMTOKEN}(\\\\s+#{NMTOKEN})*"
REFERENCE = "(?:&#{NAME};|&#\\\\d+;|&#x[0-9a-fA-F]+;)"
Files
- lib/rexml/xmltokens.rb