etch  ] [  etch-m68k  ] [  lenny  ] [  squeeze  ] [  sid  ]

Package: libxml-filter-reindent-perl (0.03-6)

Perl module for reformatting whitespace for pretty printing XML

This module can be used as a PerlSAX filter to reformat an XML document before sending it to a PerlSAX handler that prints it (like XML::Handler::Composer).

Like XML::Filter::DetectWS, it detects ignorable whitespace and blocks of whitespace characters in certain places. It uses this information and information supplied by the user to determine where whitespace may be modified, deleted or inserted. Based on the indent settings, it then modifies, inserts and deletes characters and ignorable_whitespace events accordingly.

This is just a first stab at the implementation. It may be buggy and may change completely!

The suggestedd package is only needed for the example 'pretty.pl'

Tags: Software Development: Perl Development, Libraries, Implemented in: Perl, Role: Shared Library

Other Packages Related to libxml-filter-reindent-perl

  • depends
  • recommends
  • suggests
  • dep: libxml-filter-detectws-perl
    Perl module for detecting ignorable whitespace
  • dep: perl (>= 5.6.0-16)
    Larry Wall's Practical Extraction and Report Language

Download libxml-filter-reindent-perl

Download for all available architectures
Architecture Package Size Installed Size Files
all 10.6 kB84 kB [list of files]