Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.541.183 Times

XML::Filter::Mode 0.02

  Date Added: November 27, 2010  |  Visits: 746

XML::Filter::Mode

Report Broken Link
Printer Friendly Version


Product Homepage
Download (81 downloads)



XML::Filter::Mode Perl module can filter out all chunks not in the current mode. SYNOPSIS use XML::Filter::Mode; use strict; my $filter = XML::Filter::Mode->new( Modes => "a,b,c" ); my $filter = XML::Filter::Mode->new( Modes => [qw( a b c )] ); ## To inspect the modes: my @modes = $filter->modes; ## To change the modes: $h->modes( qw( d e ) ); Filters portions of documents based on a mode= attribute. I use this to have XML documents that can be read in several modes, for instance "test", "demo" and normal (ie not test or demo), or "C", "Bytecraft_C", "Perl". Mode names must contain only alphanumerics and "_" (ie match Perls w regexp assertion). The filter is given a comma separated list of modes. Each element in the XML document may have a mode="" attribute that gives a mode expression. If there is no mode attribute or it is empty or the mode expression matches the list of modes, then the element is accepted. Otherwise it and all of its children are cut from the document. The mode expression is a boolean expression using the operators & (which unfortunately must be escaped as "&"), |, , to build mode matching expressions from a list Parentheses may be used to group operations. of words. , and <|> are synonyms. ! may be used as a prefix negation operator, so !a means "unless mode a". Examples: Modes mode="..." Action Enabled Value ===== ========== ====== (none) "" pass a "" pass a "a" pass a "a" pass a,b "a" pass a "a,b" pass b "a,b" pass a,b "a,b" pass b "!a,b" pass a,b "a b" pass (none) "b" cut a "b" cut a "a&b" cut b "a&b" cut a "!a,b" cut a "!a" cut.

Requirements: No special requirements
Platforms: Linux
Keyword: Cut Filter Filter Out Libraries Mode Mode Perl Modes Not In Pass Perl Module Xml Xmlfiltermode
Users rating: 0/10

License: Freeware Size: 4.1 KB
USER REVIEWS
More Reviews or Write Review


XML::FILTER::MODE RELATED
Libraries  -  HTTPD::Log::Filter 1.08
HTTPD::Log::Filter is a Perl module to filter entries out of an httpd log. SYNOPSIS my $hlf = HTTPD::Log::Filter->new( exclusions_file => $exclusions_file, agent_re => .*Mozilla.*, format => ELF, ); while( ) { my $ret =...
10.24 KB  
Backup Utilities  -  Tenorshare ReiBoot 6.0.0.0
Tenorshare ReiBoot is the totally free Mac iPhone reboot software. It fixes iPhone, iPad and iPod Touch stuck in Recovery Mode after iOS 9.0, 8.4, 8.1, 8, iOS 7 upgrade, restore, jailbreak, etc. With this free Windows iPhone boot loop repair...
9.12 MB  
Libraries  -  Perl6::Currying 0.05
Perl6::Currying is a Perl 6 subroutine currying for Perl 5. SYNOPSIS use Perl6::Currying; sub add ($a,$b) { $a + $b } # Define a sub with named params print add(1,2); # Call it my $incr = &add.prebind(a=>1); # Bind the $a argument to 1...
5.12 KB  
Libraries  -  XHTML Family Tree Generator 2.3.2
XHTML Family Tree Generator project is a CGI Perl script together with some Perl modules that will create views of a family tree from a supplied data file. The data file is a simple text or Excel file listing the family members, parents, and other...
655.36 KB  
Libraries  -  SQL::Preproc 0.10
SQL::Preproc is a Perl module to embed SQL in your Perl (ala SQL preprocessors). SYNOPSIS use SQL::Preproc subclass => Chart, emit => 1, keepsql => 1, syntax => [ Teradata ], pponly => 1, relax => 1, alias => 1, debug => 1; use DBI;...
52.22 KB  
Libraries  -  pgk 0.05
pgk is a Perl Gimp Kit, a OO perl gtk interface. pgk::Widget new ($name,$type) pre: $name is the name of this widget. $type is the type of this widget. post: base class pgk::Widget created, that implements base functions for all derived...
7.17 KB  
Libraries  -  Module::AutoINC 0.02
SYNOPSIS perl -MModule::AutoINC ABSTRACT When Module::AutoINC is loaded, it will add itself to @INC and catch any requests for missing resources. If a Perl module is requested that has not been installed, then this will attempt to...
5.12 KB  
Libraries  -  Chess::PGN::Filter 0.13
Chess::PGN::Filter is a Perl extension for converting PGN files to other formats. SYNOPSIS use Chess::PGN::Filter; filter(source => $pgn,filtertype => XML); OR my %substitutions = ( hsmyers => Myers, Hugh S (ID), ); my @exclude = qw(...
18.43 KB  
Libraries  -  Bloom::Filter 0.03
Bloom::Filter is a sample Perl Bloom filter implementation. A Bloom filter is a probabilistic algorithm for doing existence tests in less memory than a full list of keys would require. The tradeoff to using Bloom filters is a certain...
4.1 KB  
Snippets  -  Javascript YUI Filter Control 1.0
The Filter control provides a front end component that can be used on websites to manage the specification of a multi-faceted filter.It was inspired by the filtering capabilties found in Fog Bugz, and utilizes the Yahoo UI Widgets Javascript...
 
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB