Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Not sure of any other XPath-on-streams freaks, let me know of any.

    Will take a look at that toolkit when next I dive in to EventPath implementation (see XML::Filter::Dispatcher [] for that, those of you interested in streaming XPath implementations).

    Thanks for the pointer.

    - Barrie

    • Hand raised, waving frantically

      It has been in my todo list for ever... maybe between ripping the XPAth grammar from XML::Filter::Dispatcher and this I can write something really cool for XML::Twig.

      I'd bet on you getting there first though ;--(

      • Couldn't you go at it the lazy way and build that Twig functionality layered over XFD?


        -- Robin Berjon []

        • Here's how X::F::D does its pale immitation of TWIG-like things:

             '/*/b' => [ 'hash()'   => sub { use BFD; d xvalue } ],
             '/*/c' => [ 'struct()' => sub { use BFD; d xvalue } ],

          Those two will print out hashes (returned by xvalue()) for each <b> and <c> in the root element. Mind you, this isn't meant to look pretty or replace XML::TWIG, it's meant to provide limited TWIG-like functionality in the X::F::D environment so you can conveniently slurp a tw