class Listener
attr_reader :ts, :te
attr_reader :normalize
def initialize
@ts = false
@te = false
end
def tag_start name, attrs
@ts = true if name=="subsection" and attrs["title"]=="Namespaces"
end
def tag_end name
@te = true if name=="documentation"
end
def text text
@normalize = text
end
def instruction name, instruction
end
def comment comment
end
def doctype name, pub_sys, long_name, uri
end
def attlistdecl content
end
def elementdecl content
end
def entitydecl content
end
def notationdecl content
end
def entity content
end
def cdata content
end
def xmldecl version, encoding, standalone
end
end