Thanks for your inputs. However problem in my case is my production environment has just XML::Parser . I am not allowed to download XML::Twig or any other module. So options are either to directly manipulate or use XML::Parser. I have not done XML parsing anytime earlier . Would appreciate your inputs. Thanks.