in reply to extract xml data and insert new xml tag into same file
So - what exactly is your problem? Show your code! If you have no code, are you aware that perlmonks is not a code writing service?
Alexander