create a tag at top of xml file using python
I have xml file named ‘test.xml’ like below format <final_output> <career_profile> <output> <Template OriginalSentence="1" SentenceID="1" RecordID="0"> <Employer Type="String"><Value>HCL TECHNOLOGY LTD</Value></Employer> <duration><Value>JAN 2018 to till date</Value></duration> </Template> </output> </career_profile> </final_output> I want to add a final_file tag on top of test.xml file using python. The output should look like: <final_file> <final_output> <career_profile> <output> <Template OriginalSentence="1" SentenceID="1"… Read More create a tag at top of xml file using python