|File Search||Catalog||Content Search|
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 suggested package is only needed for the example 'pretty.pl'
This directory contains some sample Perl scripts. - pretty.pl Uses XML::Filter::Reindent and XML::Handler::Composer to pretty print your XML file. These classes need some work so don't expect too much...
Reindent(3pm) User Contributed Perl Documentation Reindent(3pm) NAME XML::Filter::Reindent - Reformats whitespace for pretty printing XML 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); DESCRIPTION more»
libxml-filter-reindent-perl (0.03-7) unstable; urgency=low [ gregor herrmann ] * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). * Set Maintainer to Debian Perl Group. * Use dist-based URL in debian/watch. * Split changes to bin/pretty.pl out into a patch; add quilt framework. * Add debian/README.source to do more»
Revision history for Perl extension XML::Filter::Reindent. 0.03 Fri Apr 5th - Added bin/pretty.pl more»
Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 Ups more»