XML::Filter::DataIndenter

Description

XML::Filter::DataIndenter is a SAX2 Indenter for data oriented XML. SYNOPSIS use XML::Filter::DataIndenter; use XML::SAX::Machines qw( Pipeline ); Pipeline( XML::Filter::DataIndenter => *STDOUT ); ALPHA CODE ALERT: This is the first release. Feedback and patches welcome. In data oriented XML, leaf elements (those which contain no elements) contain only character content, all other elements contain only child elements and ignorable whitespace. This filter consumes all whitespace not in leaf nodes and replaces it with whitespace that indents all elements. Character data in leaf elements is left unmolested. This filter assumes youre emitting data oriented XML. It will die if it sees non-whitespace character data outside of a leaf element. It also dies if it sees start-tag / end-tag mismatch, just as a service to the programmer. Processing instructions and comments are indented as though they were leaf elements except when they occur in leaf elements. Example: This document: < a>< ?A?> < !--A-->< b>< ?B?>< !--B-->B< /b> < !--A--> < /a> gets reindented as: < a> < ?A?> < !--A--> < b>< ?B?>< !--B-->B< /b> < !--A--> < /a> (plus or minus a space in each PI, depending on your XML writer)..

Xml - Dataindenter - Sax2 - Sax2 Indenter - Data - Elements - Oriented - Leaf - Indenter - Xmlfilterdataindenter - Libraries - Programming

Published By:Barrie Slaymaker

License Type:Freeware

Date Added:22 October, 2010

Version:0.1

Price:Free

Downloads:85

Size:3.1 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

XML::Simple::Tree is a tree object extension for XML::Simple data structures.

DateSep 3, 2010

AuthorAaron Dancygier

Size7.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

XML::Generator::vCard is a Perl module that can generate SAX2 events for vCard 3.

DateOct 4, 2010

AuthorAaron Straup Cope

Size7.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

RDFStore::Parser::SiRPAC is a Perl module that implements a streaming RDF Parser as a direct implementation of XML::Parser::Expat.

DateAug 8, 2010

AuthorAlberto Reggiori

Size481.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Data::Phrasebook::Loader::XML Perl module can abstract your phrases with XML. SYNOPSIS use Data::Phrasebook; my $q = Data::Phrasebook->new( class => Fnerk, loader => XML, file => phrases.

DateOct 11, 2010

AuthorBarbie

Size17.4 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

EDIReader is a Java package for parsing business documents structured according to EDI (Electronic Data Interchange) standards.

DateOct 12, 2010

AuthorBerryWorks

Size675.8 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities