Add exported fun to convert from XML to simple form