Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Text Editing&Processing > Markup

    XML::Grammar::Fortune 0.0400

    Download button

    No screenshots available
    Downloads: 452  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Shlomi Fish | More programs
    MIT/X Consortium Lic... / FREE
    October 25th, 2010, 01:15 GMT
    ROOT / Text Editing&Processing / Markup

     Read user reviews (0)  Refer to a friend  Subscribe

    XML::Grammar::Fortune description

    Collect quotes (or Unix-like fortune cookies)

    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",
     }
     )



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    FortunesXML converter | FortunesXML grammar | Perl module | FortunesXML | grammar | plaintext

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM