XML::Reader::PP - Importing XML::Reader using XML::Parsepp
XML::Reader::PP provides all the functionalities of XML::Reader using the pure perl parser XML::Parsepp.
use XML::Reader::PP; my $text = q{<init>n <?test pi?> t<page node="400">m <!-- remark --> r</page></init>}; my $rdr = XML::Reader::PP->new(\$text); while ($rdr->iterate) { printf "Path: %-19s, Value: %s\n", $rdr->path, $rdr->value; }
This program produces the following output:
Path: /init , Value: n t Path: /init/page/@node , Value: 400 Path: /init/page , Value: m r Path: /init , Value:
To find out more about the different functionalities, please have a look at the documentation for XML::Reader.
Klaus Eichner <klaus03@gmail.com>
Copyright (C) 2012 by Klaus Eichner
All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the artistic license 2.0, see http://www.opensource.org/licenses/artistic-license-2.0.php
XML::Parsepp, XML::Reader, XML::Reader::RS.
To install XML::Reader::PP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Reader::PP
CPAN shell
perl -MCPAN -e shell install XML::Reader::PP
For more information on module installation, please visit the detailed CPAN module installation guide.