def _crawl_oxford_and_find_main_xml(self):
self.found_articles = []<EOL>def visit(arg, dirname, names):<EOL><INDENT>files = [filename for filename in names if "<STR_LIT>" in filename]<EOL>if files:<EOL><INDENT>try:<EOL><INDENT>for f in files:<EOL><INDENT>self.found_articles.append(join(dirname, f))<EOL><DEDENT><DEDENT>except Exception as err:<EOL><INDENT>register_exception()<EOL>print("<STR_LIT>" % (dirname, err),<EOL>file=sys.stderr)<EOL><DEDENT><DEDENT><DEDENT>if hasattr(self, '<STR_LIT>'):<EOL><INDENT>walk(self.path_unpacked, visit, None)<EOL><DEDENT>elif self.path:<EOL><INDENT>walk(self.path, visit, None)<EOL><DEDENT>else:<EOL><INDENT>self.logger.info("<STR_LIT>")<EOL><DEDENT>
A package contains several subdirectory corresponding to each article.
An article is actually identified by the existence of a main.pdf and
a main.xml in a given directory.