These three methods would be of no use if the menu parsing was done with the ElementTree API (which could also improve code simplicity/readability in a few other places).
Is there a reason for using xml.dom.minidom over ElementTree ?