Did I find the right examples for you? yes no

All Samples(9)  |  Call(7)  |  Derive(0)  |  Import(2)
Combines both the attr2dict and child2dict functions
    

        def node2dict(el):
    """Combines both the attr2dict and child2dict functions
    """
    return dict(list(attr2dict(el).items()) + list(child2dict(el).items()))
        


src/r/u/rundeckrun-0.1.8/rundeck/transforms.py   rundeckrun(Download)
    import xml.etree.ElementTree as ElementTree
 
from .util import child2dict, attr2dict, node2dict
 
_DATETIME_ISOFORMAT = '%Y-%m-%dT%H:%M:%SZ'
        job_el = el.find('job')
        if job_el is not None:
            data['job'] = node2dict(job_el)
            el.remove(job_el)
 
    if job_count > 0:
        for job_el in base.iterfind('job'):
            jobs.append(node2dict(job_el))
 
    return jobs
            jobs = []
            for job_req_el in status_el.iterfind('deleteJobResult'):
                jobs.append(node2dict(job_req_el))
            results[status]['jobs'] = jobs
 
def execution_abort(resp):
    return node2dict(resp.etree.find('abort'))
 
 
@is_transform

src/a/n/another-springnote-HEAD/src/springnote/models.py   another-springnote(Download)
from xml.dom.minidom import parseString, getDOMImplementation
 
from .util import node2dict
 
APP_KEY = '06f05bc881d795dee3eadd36f40913500b444605'
                        raise ValueError(kwargs['xml'],
                                status=int(div.getAttribute('id')[5:]))
            node_dict = node2dict(dom.documentElement)
            # TODO: rights
        elif 'dom' in kwargs:
            dom = kwargs['dom']
            if dom.tagName == 'errors':
                raise ValueError(kwargs['xml'])
            node_dict = node2dict(dom)