-
-
Notifications
You must be signed in to change notification settings - Fork 0
Processing PYX data or file and write as SGML.
License
michal-josef-spacek/PYX-SGML-Raw
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NAME PYX::SGML::Raw - Processing PYX data or file and write as SGML. SYNOPSIS use PYX::SGML::Raw; my $obj = PYX::SGML::Raw->new(%parameters); $obj->parse($pyx, $out); $obj->parse_file($input_file, $out); $obj->parse_handler($input_file_handler, $out); $obj->finalize; METHODS "new" my $obj = PYX::SGML::Raw->new(%parameters); Constructor. * "output_handler" Output handler. Default value is \*STDOUT. Returns instance of object. "parse" $obj->parse($pyx, $out); Parse PYX text or array of PYX text. Output is serialization to SGML. If $out not present, use 'output_handler'. Returns undef. "parse_file" $obj->parse_file($input_file, $out); Parse file with PYX data. Output is serialization to SGML. If $out not present, use 'output_handler'. Returns undef. "parse_handler" $obj->parse_handler($input_file_handler, $out); Parse PYX defined by handler. Output is serialization to SGML. If $out not present, use 'output_handler'. Returns undef. "finalize" $obj->finalize; Finalize opened tags, if exists. Returns undef. ERRORS new(): From Class::Utils::set_params(): Unknown parameter '%s'. EXAMPLE use strict; use warnings; use PYX::SGML::Raw; # Input. my $pyx = <<'END'; (element -data )element END # Object. my $obj = PYX::SGML::Raw->new; # Process. $obj->parse($pyx); print "\n"; # Output: # <element>data</element> DEPENDENCIES Class::Utils, PYX::Parser, PYX::Utils. SEE ALSO Task::PYX Install the PYX modules. REPOSITORY <https://github.com/michal-josef-spacek/PYX-SGML-Raw> AUTHOR Michal Josef Špaček skim@cpan.org. <http://skim.cz> LICENSE AND COPYRIGHT © 2011-2023 Michal Josef Špaček BSD 2-Clause License VERSION 0.06
About
Processing PYX data or file and write as SGML.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published