#2 Restructured functions
#2 Exposed xmlwriter globally