|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: UNIX pipes, XML processing
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








