How to Solve NameError: name 'dicttoxml' is not defined -- dicttoxml

Solution: Import the 'dicttoxml' module

To Solve the error, add the following line to the top of your code.

from dicttoxml import dicttoxml

 

For more information:
Python dicttoxml dicttoxml