XML::Grammar::Fortune 0.0400

Collect quotes (or Unix-like fortune cookies)

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
MIT/X Consortium License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Shlomi Fish
HOMEPAGE:
web-cpan.berlios.de
CATEGORY:
ROOT \ Text Editing&Processing \ Markup
XML::Grammar::Fortune is a Perl module that allows one to collect quotes (or Unix-like fortune cookies) using an XML grammar, with a lot of rich meta-data, and to produce XHTML and plaintext from them.

SYNOPSIS

 use XML::Grammar::Fortune;

 # Validate files.

 my $validator =
 XML::Grammar::Fortune->new(
 {
 mode => "validate"
 }
 );

 # Returns 0 upon success - dies otherwise
 exit($validator->run({input => "my-fortune-file.xml"}));

 # Convert files to XHTML.
 
 my $converter =
 XML::Grammar::Fortune->new(
 {
 mode => "convert_to_html",
 output_mode => "filename"
 }
 )
 
 $converter->run(
 {
 input => "my-fortune-file.xml",
 output => "resultant-file.xhtml",
 }
 )

Last updated on October 25th, 2010

requirements

#FortunesXML converter #FortunesXML grammar #Perl module #FortunesXML #grammar #plaintext #converter

Add your review!

SUBMIT