This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!isset($argv[1])){ | |
print_r("ERR: directory name required as \$argv[1]... (php getTopLevelTitleNodes.php LO_object_directory)". PHP_EOL); | |
return; | |
} | |
$lo_object_dir = $argv[1]; | |
$xml_files = glob("./". $lo_object_dir ."/*.xml"); | |
// print "starting" . "\n"; | |
$title_list = array(); | |
foreach ($xml_files as $file) { |