| 1 |
XML::Filter::Reindent version 0.03 |
| 2 |
================================== |
| 3 |
|
| 4 |
DESCRIPTION |
| 5 |
|
| 6 |
XML::Filter::Reindent is a sub class of XML::Filter::DetectWS. |
| 7 |
|
| 8 |
XML::Filter::Reindent can be used as a PerlSAX filter to reformat an XML document before sending it to a PerlSAX |
| 9 |
handler that prints it (like XML::Handler::Composer.) |
| 10 |
|
| 11 |
Like XML::Filter::DetectWS, it detects ignorable whitespace and blocks of whitespace characters in certain places. It |
| 12 |
uses this information and information supplied by the user to determine where whitespace may be modified, deleted or |
| 13 |
inserted. Based on the indent settings, it then modifies, inserts and deletes characters and ignorable_whitespace |
| 14 |
events accordingly. |
| 15 |
|
| 16 |
This is just a first stab at the implementation. It may be buggy and may change completely! |
| 17 |
|
| 18 |
INSTALLATION |
| 19 |
|
| 20 |
To install this module type the following: |
| 21 |
|
| 22 |
perl Makefile.PL |
| 23 |
make |
| 24 |
make test |
| 25 |
make install |
| 26 |
|
| 27 |
COPYRIGHT AND LICENCE |
| 28 |
|
| 29 |
Copyright (c) 1999,2000 Enno Derksen |
| 30 |
All rights reserved. |
| 31 |
This program is free software; you can redistribute it and/or modify it |
| 32 |
under the same terms as Perl itself. |