NAME

XML::Reader::PP - Importing XML::Reader using XML::Parsepp

SYNOPSIS

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.

AUTHOR

Klaus Eichner <klaus03@gmail.com>

COPYRIGHT AND LICENSE

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

SEE ALSO

XML::Parsepp, XML::Reader, XML::Reader::RS.