in reply to How to use XML::Parser

Is that possible?

Yes.