(node)
return node_list
Returns a list of all the node and sub nodes.
Returns a list of all the node and sub nodes.
Returns a list of all the node and sub nodes .
def FlattenFilter(node):
  """Returns a list of all the node and sub nodes."""
  node_list = []

  if (node.attributes and
      node.getAttribute('Name') == '_excluded_files'):
      # We don't add the "_excluded_files" filter.
    return []

  for current in node.childNodes:
    if current.nodeName == 'Filter':
      node_list.extend(FlattenFilter(current))
    else:
      node_list.append(current)

  return node_list
def FlattenFilter ( node ) : node_list = [ ] if ( node . attributes and node . getAttribute ( 'Name' ) == '_excluded_files' ) : # We don't add the "_excluded_files" filter. return [ ] for current in node . childNodes : if current . nodeName == 'Filter' : node_list . extend ( FlattenFilter ( current ) ) else : node_list . append ( current ) return node_list