[Home] [By Thread] [By Date] [Recent Entries]
On Tue, 25 Jul 2000, Joshua Allen wrote:
> Another interesting XML pipelining idea:
> http://www.xbeans.org/
In Perl you can also use XML::Twig to do pipe processing, although what is
passed around in XML, so you still have the parser penalty, you can write:
use XML::Twig;
my $twig= new XML::Twig( TwigRoots => { elt => \&handler },
TwigPrintOutsideRoots => 1);
$twig->parse( \*STDIN);
exit;
sub handler
{ my( $twig, $elt)= @_;
# process element here
}
and string several of those filters, each processing only the required
element(s).
Michel Rodriguez
m.v.rodriguez@i...
http://www.xmltwig.cx
|

Cart



