def genattr(elems):
    """ Function that generates a list with the childnodes of a xml element  """
    d = []
    for e in elems[0].childNodes:
        if e.nodeType == e.ELEMENT_NODE:
            d.append(e)
    return d
