Related

A template for stream parser listeners. Note that the declarations
(attlistdecl, elementdecl, etc) are trivially processed; REXML doesn’t yet handle doctypeentity declarations, so you
have to parse them out yourself.