Linux SoftwareProgrammingLibrariesSVG::Parser 1.01

SVG::Parser 1.01


SVG::Parser is a Perl module with XML Parser for SVG documents. SYNOPSIS #!/usr/bin/perl -w use strict; use SVG::Parser; d
Developer:   Peter Wainwright
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   14K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


SVG::Parser is a Perl module with XML Parser for SVG documents.

SYNOPSIS

#!/usr/bin/perl -w
use strict;
use SVG::Parser;

die "Usage: $0 n" unless @ARGV;

my $xml;
{
local $/=undef;
$xml=;
}

my $parser=new SVG::Parser(-debug => 1);
my $svg=$parser->parse($xml);
print $svg->xmlify;

and:

#!/usr/bin/perl -w
use strict;
use SVG::Parser qw(SAX=XML::LibXML::Parser::SAX Expat SAX);

die "Usage: $0 n" unless @ARGV;
my $svg=SVG::Parser->new()->parsefile($ARGV[0]);
print $svg->xmlify;

SVG::Parser is an XML parser for SVG Documents. It takes XML as input and produces an SVG object as its output.

SVG::Parser supports both XML::SAX and XML::Parser (Expat) parsers, with SAX preferred by default. Only one of these needs to be installed for SVG::Parser to function.

A list of preferred parsers may be specified in the import list - SVG::Parser will use the first parser that successfully loads. Some basic measures are taken to provide cross-compatability. Applications requiring more advanced parser features should use the relevant parser module directly; see SVG::Parser::Expat and SVG::Parser::SAX

Requirements:
  • Perl
    tags svg parser  for svg  xml parser  print svg  parser new  svg xmlify  parser expat  use the  unless @argv  parser sax  strict use  svg documents  parser for  

    Download SVG::Parser 1.01


     http://ftp.hostingromania.ro/Linux/mirrors/ftp.cpan.org/authors/id/P/PE/PETERW/SVG-Parser-1.01.tar.gz


    Authors software

    SVG::Parser 1.01 (by Peter Wainwright)
    SVG::Parser is a Perl module with XML Parser for SVG documents.

    SYNOPSIS

    #!/usr/bin/perl -w
    use strict;
    use SVG::Parser;

    d


    Similar software

    SVG::Parser 1.01 (by Peter Wainwright)
    SVG::Parser is a Perl module with XML Parser for SVG documents.

    SYNOPSIS

    #!/usr/bin/perl -w
    use strict;
    use SVG::Parser;

    d

    XML::Parser 2.34 (by Larry Wall)
    XML::Parser is a perl module for parsing XML documents.

    SYNOPSIS

    use XML::Parser;

    $p1 = new XML::Parser(Style => 'Debu

    XML::Checker::Parser 1.02 (by Enno Derksen)
    XML::Checker::Parser is an XML::Parser that validates at parse time.

    SYNOPSIS

    use XML::Checker::Parser;

    my %expat_options

    PXR::Parser 0.1.5 (by Nicholas Perez)
    PXR::Parser is a Pure Perl SAX XML Push Parser.

    SYNOPSIS

    use PXR::Parser;

    my $parser = PXR::Parser->new(

    MP3::M3U::Parser 2.20 (by Burak G?rsoy)
    MP3::M3U::Parser is a MP3 playlist parser.

    SYNOPSIS

    use MP3::M3U::Parser;
    my $parser = MP3::M3U::Parser->new(%options);

    Makefile::Parser 0.11 (by Agent Zhang)
    Makefile::Parser is a Simple Parser for Makefiles.

    SYNOPSIS

    use Makefile::Parser;

    $parser = Makefile::Parser->new;

    RDF::Simple::Parser 0.3 (by Jo Walsh)

    XML::SAX 0.14 (by Matt Sergeant, Kip Hampton and Robin Berjon)
    XML::SAX is a simple API for XML.

    SYNOPSIS

    use XML::SAX;

    # get a list of known parsers
    my $parsers = XML::SAX->pars

    RDFStore::Parser::SiRPAC 0.50 (by Alberto Reggiori)
    RDFStore::Parser::SiRPAC is a Perl module that implements a streaming RDF Parser as a direct implementation of XML::Parser::Expat.

    XML::Parser::PerlSAX 0.08 (by Ken MacLeod)
    XML::Parser::PerlSAX is a Perl SAX parser using XML::Parser.

    SYNOPSIS

    use XML::Parser::PerlSAX;

    $parser = XML::Parser::Per


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags