Linux SoftwareProgrammingLibrariesXML::DocStats 0.01

XML::DocStats 0.01


XML::DocStats is a Perl module to produce a simple analysis of an XML document. SYNOPSIS Analyze the xml document on STDIN, the
Developer:   Alan Dickey
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   27K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


XML::DocStats is a Perl module to produce a simple analysis of an XML document.

SYNOPSIS

Analyze the xml document on STDIN, the STDOUT output format is html:
use XML::DocStats;
my $parse = XML::DocStats->new;
$parse->analyze;

Analyze in-memory xml document:
use XML::DocStats;
my ($xmldata) = @_;
my $parse = XML::DocStats->new(xmlsource=>{String => $xmldata},
BYTES => length($xmldata));
$parse->analyze;

Analyze xml document IO stream, the output format is plain text:
use XML::DocStats;
use IO::File;
my $xmlsource = IO::File->new("< document.xml");
my $parse = XML::DocStats->new(xmlsource=>{ByteStream => $xmlsource});
$parse->format('text');
$parse->analyze;

XML::DocStats parses an xml document using a SAX handler built using Ken MacLeod's XML::Parser::PerlSAX. It produces a listing indented to show the element heirarchy, and collects counts of various xml components along the way. A summary of the counts is produced following the conclusion of the parse. This is useful to visualize the structure and content of an XML document.

The output listing is either in plain text or html.

Each xml thingy is color-coded in the html output for easy reading:

  • purple denotes elements.
  • blue denotes text (character data). The text itself is black.
  • olive denotes attributes and attribute valuesin elements, XML-DCL, DOCTYPE, and PIs.
  • fuchsia denotes entity references. The name of the entity is in black. fuchsia is also used to denote the root element, and to mark the start and finish of the parse, as well as to label the statistices at the end.
  • teal denotes the XML declaration.
  • navy denotes the DOCTYPE declaration.
  • maroon denotes PIs (processing instructions).
  • green denotes comments. The text of the comment is black.
  • red denotes error messages should the xml fail to be well-formed.

    Requirements:
  • Perl
    tags xml docstats  xml document  docstats new  parse xml  parse analyze  use xml  the xml  denotes the  the parse  the text  plain text  analyze xml  output format  

    Download XML::DocStats 0.01


     http://ftp.casaafacerilor.ro/mirrors/CPAN/authors/id/A/AL/ALDICKEY/XML-DocStats-0.01.tar.gz


    Authors software

    XML::DocStats 0.01 (by Alan Dickey)
    XML::DocStats is a Perl module to produce a simple analysis of an XML document.

    SYNOPSIS

    Analyze the xml document on STDIN, the


    Similar software

    XML::DocStats 0.01 (by Alan Dickey)
    XML::DocStats is a Perl module to produce a simple analysis of an XML document.

    SYNOPSIS

    Analyze the xml document on STDIN, the

    HTML::Parser 3.54 (by Gisle Aas)
    HTML::Parser is a HTML parser class

    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

    XML::DOM::Document 1.44 (by XML::DOM Team)
    XML::DOM::Document is an XML document node in XML::DOM.

    XML::DOM::Document extends XML::DOM::Node.

    It is the main root of the X

    Template::Plugin::XML::DOM 2.16 (by Andy Wardley and Simon Matthews)
    Template::Plugin::XML::DOM is a plugin interface to XML::DOM.

    SYNOPSIS

    # load plugin
    [% USE dom = XML.DOM %]

    #

    XML::Parser::Style::Stream 2.34 (by Clark Cooper)
    XML::Parser::Style::Stream is a Stream style for XML::Parser.

    SYNOPSIS

    use XML::Parser;
    my $p = XML::Parser->new(Style =>

    XML::Mini::Document 1.2.8 (by Patrick Deegan, Psychogenic Inc.)
    XML::Mini::Document is a Perl implementation of the XML::Mini Document API.

    SYNOPSIS

    use XML::Mini::Document;

    XML::DOM 1.44 (by T.J. Mather)
    XML::DOM is a perl module for building DOM Level 1 compliant document structures.

    SYNOPSIS

    use XML::DOM;

    my $parser = new

    XML::Grove 0.46 Alpha (by Ken MacLeod)
    XML::Grove is a Perl module with Perl-style XML objects.

    SYNOPSIS

    use XML::Grove;

    # Basic parsing and grove building
    use

    ShaniXmlParser 1.4.7 (by Quentin Anciaux)
    ShaniXmlParser is an XML/HTML DOM/SAX parser that can be validating


    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