XML::Filter::Reindent

Reformats whitespace for pretty printing XML
Download

XML::Filter::Reindent Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • T.J. Mather
  • Publisher web site:
  • http://search.cpan.org/~borisz/

XML::Filter::Reindent Tags


XML::Filter::Reindent Description

Reformats whitespace for pretty printing XML XML::Filter::Reindent is a Per subclass of XML::Filter::DetectWS.XML::Filter::Reindent 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!SYNOPSIS use XML::Handler::Composer; use XML::Filter::Reindent; my $composer = new XML::Handler::Composer (%OPTIONS); my $indent = new XML::Filter::Reindent (Handler => $composer, %OPTIONS); Requirements: · Perl


XML::Filter::Reindent Related Software