7c5d6a54cfb2a9403abcf772437447bd53ffe2c8
[booh] / lib / booh / rexml / dtd / elementdecl.rb
1 require "booh/rexml/child"
2 module REXML
3         module DTD
4                 class ElementDecl < Child
5                         START = "<!ELEMENT"
6                         START_RE = /^\s*#{START}/um
7                         PATTERN_RE = /^\s*(#{START}.*?)>/um
8                         PATTERN_RE = /^\s*#{START}\s+((?:[:\w_][-\.\w_]*:)?[-!\*\.\w_]*)(.*?)>/
9                         #\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true)
10
11                         def initialize match
12                                 @name = match[1]
13                                 @rest = match[2]
14                         end
15                 end
16         end
17 end