in reply to How Can Get DTD elements/Attribute

HTML::Parser (or HTML::Tree) or XML::Parser (or XML::Twig)