def parse_dir_entries(decoded_str):
 doc = xml.dom.pulldom.parseString(_get_xml_data(decoded_str))
 entries = list()
 for (event, node) in doc:
  if ((event == 'START_ELEMENT') and (node.nodeName == 'entry')):
   doc.expandNode(node)
   if (not _get_entry_schedule(node).startswith('delete')):
    entries.append((node.getAttribute('path'), node.getAttribute('kind')))
 return entries[1:]

def parse_dir_entries ( decoded_str ) : doc = xml . dom . pulldom . parseString ( _get_xml_data ( decoded_str ) ) entries = list ( ) for ( event , node ) in doc : if ( ( event == 'START_ELEMENT' ) and ( node . nodeName == 'entry' ) ) : doc . expandNode ( node ) if ( not _get_entry_schedule ( node ) . startswith ( 'delete' ) ) : entries . append ( ( node . getAttribute ( 'path' ) , node . getAttribute ( 'kind' ) ) ) return entries [ 1 : ]
parse the entries from a recursive info xml .