stackoverflow.com Remove namespace and prefix from xml in python using lxml
+ 0

I have an xml file I need to open and make some changes to, one of those changes is to remove the namespace and prefix and then save to another file. Here is the xml: <?xml version=’1.0’ encoding=’UTF-8’?> <package xmlns="http://apple.com/itunes/importer"> <provider>some data</provider> <language>en-GB</language> </package> I can make the other changes I need, but can’t find out how to remove the namespace and prefix.