OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: UNIX pipes, XML processing

[ Lists Home | Date Index | Thread Index ]
  • From: Michel Rodriguez <mrodrigu@ieee.org>
  • To: XML-Dev Mailing list <xml-dev@xml.org>
  • Date: Wed, 26 Jul 2000 05:53:43 -0400 (EDT)

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);

sub handler
  { my( $twig, $elt)= @_;
   # process element here

and string several of those filters, each processing only the required

Michel Rodriguez


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS