original_docstring:  To convert an XML element (and children) to dict enabling creation of parameter object.
  
          =============== ================== =======================================
          **Parameters**   **Type**            **Description**
  
          *params*         dictionnary list    the list to create parameter object
          *XML_elt*        XML object          the XML object to be converted
          =============== ================== =======================================
  
          Returns
          -------
          params : dictionnary list
              list of dict to create parameter object
  
          Examples
          -------
          >>> from pyqtgraph.parametertree import Parameter, ParameterItem
          >>> import xml.etree.ElementTree as ET
          >>> tree = ET.parse('text_bis.xml')
          >>> root = tree.getroot()
          >>> params=walk_xml_to_parameter(XML_elt=root)
          >>> settings_xml=Parameter.create(name='Settings XML', type='group', children=params)
          >>> settings=Parameter.create(name='Settings', type='group', children=params)
  
          See Also
          --------
          walk_parameters_to_xml          
      
docstring: To convert an XML element (and children) to dict enabling creation of parameter object.
  
  params*         dictionnary list    the list to create parameter object
  XML_elt*        XML object          the XML object to be converted
  
  Returns
  
  params : dictionnary list
  list of dict to create parameter object
  
  Examples
  
  
  
  See Also
  
  
docstring_tokens: To convert an XML element ( and children ) to dict enabling creation of parameter object . params * dictionnary list the list to create parameter object XML_elt * XML object the XML object to be converted Returns params : dictionnary list list of dict to create parameter object Examples See Also
code: def walk_xml_to_parameter(params=[], XML_elt=None):
      """ To convert an XML element (and children) to dict enabling creation of parameter object.
  
          =============== ================== =======================================
          **Parameters**   **Type**            **Description**
  
          *params*         dictionnary list    the list to create parameter object
          *XML_elt*        XML object          the XML object to be converted
          =============== ================== =======================================
  
          Returns
          -------
          params : dictionnary list
              list of dict to create parameter object
  
          Examples
          -------
          >>> from pyqtgraph.parametertree import Parameter, ParameterItem
          >>> import xml.etree.ElementTree as ET
          >>> tree = ET.parse('text_bis.xml')
          >>> root = tree.getroot()
          >>> params=walk_xml_to_parameter(XML_elt=root)
          >>> settings_xml=Parameter.create(name='Settings XML', type='group', children=params)
          >>> settings=Parameter.create(name='Settings', type='group', children=params)
  
          See Also
          --------
          walk_parameters_to_xml          
      """
      try:
          if type(XML_elt) is not ET.Element:
              raise TypeError('not valid XML element')
  
  
          elts = XML_elt.getchildren()
          if len(elts) == 0:
              param_dict = elt_to_dict(XML_elt)
              param_type = XML_elt.get('type')
  
              if 'group' not in param_type:  # covers 'group', custom 'groupmove'...
                  set_txt_from_elt(XML_elt, param_dict)
              params.append(param_dict)
  
          for el in elts:
              param_dict = elt_to_dict(el)
              param_type = el.get('type')
  
              if 'group' not in param_type: #covers 'group', custom 'groupmove'...
                  set_txt_from_elt(el, param_dict)
              else:
                  subparams=[]
                  param_dict.update(dict(children=walk_xml_to_parameter(subparams,el)))
  
                  param_dict.update(dict(name=el.tag))
  
              params.append(param_dict)
      except Exception as e: #to be able to debug when there's an issue
          raise e
      return params
code_tokens: def walk_xml_to_parameter ( params = [ ] , XML_elt = None ) : try : if type ( XML_elt ) is not ET . Element : raise TypeError ( 'not valid XML element' ) elts = XML_elt . getchildren ( ) if len ( elts ) == 0 : param_dict = elt_to_dict ( XML_elt ) param_type = XML_elt . get ( 'type' ) if 'group' not in param_type : set_txt_from_elt ( XML_elt , param_dict ) params . append ( param_dict ) for el in elts : param_dict = elt_to_dict ( el ) param_type = el . get ( 'type' ) if 'group' not in param_type : set_txt_from_elt ( el , param_dict ) else : subparams = [ ] param_dict . update ( dict ( children = walk_xml_to_parameter ( subparams , el ) ) ) param_dict . update ( dict ( name = el . tag ) ) params . append ( param_dict ) except Exception as e : raise e return params
short_docstring: To convert an XML element (and children) to dict enabling creation of parameter object.
short_docstring_tokens: To convert an XML element ( and children ) to dict enabling creation of parameter object .
comment: """ To convert an XML element (and children) to dict enabling creation of parameter object.
  
          =============== ================== =======================================
          **Parameters**   **Type**            **Description**
  
          *params*         dictionnary list    the list to create parameter object
          *XML_elt*        XML object          the XML object to be converted
          =============== ================== =======================================
  
          Returns
          -------
          params : dictionnary list
              list of dict to create parameter object
  
          Examples
          -------
          >>> from pyqtgraph.parametertree import Parameter, ParameterItem
          >>> import xml.etree.ElementTree as ET
          >>> tree = ET.parse('text_bis.xml')
          >>> root = tree.getroot()
          >>> params=walk_xml_to_parameter(XML_elt=root)
          >>> settings_xml=Parameter.create(name='Settings XML', type='group', children=params)
          >>> settings=Parameter.create(name='Settings', type='group', children=params)
  
          See Also
          --------
          walk_parameters_to_xml          
      """$SEP$# covers 'group', custom 'groupmove'...$SEP$#covers 'group', custom 'groupmove'...$SEP$#to be able to debug when there's an issue