use XML::SAX::Writer;
use XML::Directory::SAX;
use XML::Filter::XML_Directory_2RSS;
my $writer = XML::SAX::Writer->new();
my $rss = XML::Filter::XML_Directory_2RSS->new(Handler=>$writer);
$rss->exclude(exclude=>["RCS"],ending=>["~"]);
my $directory = XML::Directory::SAX->new(Handler=>$rss,
detail=>2,
depth=>1);
$directory->order_by("a");
$directory->parse_dir("/path/to/aaronland.net");
XML::Filter::XML_Directory_2RSS inherits from XML::Filter::XML_Directory_Pruner so that it can pass along all the necessary information to a 2RSS::Items handler for populating the channel/items/rdf:Seq node (ah RDF, let me rdf:Bag the ways...) In the end, I may have to subclass XML::Directory::SAX itself and rename the package as a "Handler" so that I can also pass/enforce ordering, detail and depth configs. BTW, does anyone know whether the mod_threading <thr:children> element can contain <thr:children> of its own?