in reply to How to use XML::Parser

You probably want to use a different module, such as XML::Twig or XML::LibXML, not the low-level module XML::Parser.