PYX::XMLSchema::List - Processing PYX data or file and print list of XML schemas.
use PYX::XMLSchema::List; my $obj = PYX::XMLSchema::List->new(%parameters); $obj->parse($pyx, $out); $obj->parse_file($input_file, $out); $obj->parse_handle($input_file_handler, $out); $obj->reset; my $stats_hr = $obj->stats;
new(%parameters)
Constructor.
output_handler
Output handler. Default value is \*STDOUT.
parse($pyx[, $out])
Parse PYX text or array of PYX text and print list of XML schemas of PYX input. If $out not present, use 'output_handler'. Returns undef.
parse_file($input_file[, $out])
Parse file with PYX data and print list of XML schemas of PYX input. If $out not present, use 'output_handler'. Returns undef.
parse_handler($input_file_handler[, $out])
Parse PYX handler and print list of XML schemas of PYX input. If $out not present, use 'output_handler'. Returns undef.
reset()
Resets internal structure with statistics. Returns undef.
stats()
Gets statistics structure. Returns undef.
new(): From Class::Utils::set_params(): Unknown parameter '%s'.
# Pragmas. use strict; use warnings; # Modules. use PYX::XMLSchema::List; # Example data. my $pyx = <<'END'; (foo Axmlns:bar http://bar.foo Axmlns:foo http://foo.bar Afoo:bar baz (foo:bar Axml:lang en Abar:foo baz )foo:bar )foo END # PYX::XMLSchema::List object. my $obj = PYX::XMLSchema::List->new; # Parse. $obj->parse($pyx); # Output: # [ bar ] (E: 0000, A: 0001) http://bar.foo # [ foo ] (E: 0001, A: 0001) http://foo.bar # [ xml ] (E: 0000, A: 0001)
Class::Utils, Error::Pure, List::Util, PYX::Parser, Readonly.
A perl module for PYX handling.
Install the PYX modules.
https://github.com/tupinek/PYX-XMLSchema-List
Michal Špaček mailto:skim@cpan.org
http://skim.cz
© 2015 Michal Špaček BSD 2-Clause License
0.04
To install PYX::XMLSchema::List, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PYX::XMLSchema::List
CPAN shell
perl -MCPAN -e shell install PYX::XMLSchema::List
For more information on module installation, please visit the detailed CPAN module installation guide.