require "rexml/child" module REXML module DTD class ElementDecl < Child START = "<!ELEMENT" START_RE = /^\s*#{START}/um PATTERN_RE = /^\s*(#{START}.*?)>/um PATTERN_RE = /^\s*#{START}\s+((?:[:\w_][-\.\w_]*:)?[-!\*\.\w_]*)(.*?)>/ #\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true) def initialize match @name = match[1] @rest = match[2] end end end end
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
attlistdecl.rb | File | 197 B | 0644 |
|
dtd.rb | File | 1.29 KB | 0644 |
|
elementdecl.rb | File | 420 B | 0644 |
|
entitydecl.rb | File | 1.63 KB | 0644 |
|
notationdecl.rb | File | 1.03 KB | 0644 |
|