(self, msg, label="")
add a warning to the execute xml
add a warning to the execute xml
add a warning to the execute xml
def add_warning(self, msg, label=""):
        '''add a warning to the execute xml'''
        print(msg)
        root = self.execute_xml.get_root_node()

        warning_node = self.execute_xml.create_element("warning")
        Xml.set_attribute(warning_node, "label", label)
        Xml.set_attribute(warning_node, "msg", msg)
        Xml.append_child(root, warning_node)
def add_warning ( self , msg , label = "" ) : print ( msg ) root = self . execute_xml . get_root_node ( ) warning_node = self . execute_xml . create_element ( "warning" ) Xml . set_attribute ( warning_node , "label" , label ) Xml . set_attribute ( warning_node , "msg" , msg ) Xml . append_child ( root , warning_node )