today | current | recent | random ... categories | search ... who ... syndication

Sunday, April 07 2002

Me : XML::Filter::OTLML::IO.pm




my $outline = "/path/to/io.otlml";



my $output  = IO::File->new("+<$outline");



my $writer  = XML::SAX::Writer->new(Output=>$output);



my $filter  = XML::Filter::OTLML::IO->new(Handler=>$writer);



my $parser  = XML::SAX::ParserFactory->parser(Handler=>$filter);







$parser->parse_uri($outline);



 
Still tracking down a bug where data at the end of the document sometimes (?!) gets printed twice. I might also "bless" the widget as a Handler -- this is the other part about SAX that I don't like: all these names! -- that writes to a file handle and to STDOUT so that it can be easily plugged into a pipeline. It will all have to wait until later, though since the "step away from the computer" police have arrived. I may release a tarball tomorrow, warts and all, and see what kind of feedback I get...

meta

The random pseudodictionary.com word of the day is : slazzy

Poorly attempting to dress nicely. Possible origin: Combination of snazzy (nicely dressed) and sleazy (poorly dressed).
ex. Christine looked very slazzy when she entered the fancy restaurant.

refers to

meta

The dictified dictionary.com word of the day is : demagogue

Demagogue \Dem"a*gogue\ (?; 115), n. [Gr. dhmagwgo`s a popular leader; commonly in a bad sense, a leader of the mob; dh^mos the people + 'agwgo`s leading, fr. 'a`gein to lead; akin to E. act: cf. F. d['e]magogue.] A leader of the rabble; one who attempts to control the multitude by specious or deceitful arts; an unprincipled and factious mob orator or political leader. web1913
demagogue n : an orator who appeals to the passions and prejudices of his audience [syn: {demagog}, {rabble-rouser}] wn

refers to

meta

 
 
Saturday, April 06 2002 ←  → Monday, April 08 2002