in reply to XML::Simple parser issue

Please let me know, if there is any other way to solve this issue??

Sure. Update your copy of XML::SAX to a version where this is fixed. If there is no such version, write a fix yourself.

By the way, why do you want another solution, if yours seems perfectly simple and workable? Just the "There's more than one way to do it" principle taken to the extreme?