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.544.019 Times

XML::NodeFilter 0.01

  Date Added: May 09, 2010  |  Visits: 474

XML::NodeFilter

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



XML::NodeFilter is a generic XML::NodeFilter Class. SYNOPSIS use XML::NodeFilter; my $filter = XML::NodeFilter->new(); $your_iterator->set_filter( $filter ); "Filters are objects that know how to "filter out" nodes. If a NodeIterator or a TreeWalker is given a NodeFilter, it applies the filter before it returns the next node. If the filter says to accept the node, the traversal logic returns it; otherwise, traversal looks for the next node and pretends that the node was rejected was not there." This definition is given by the DOM Traversal and Range Specification. It explains pretty well, what this class is for: A XML::NodeFilter will recieve a node from a traversal object, such as XML::LibXML::Iterator is one and tells if the given node should be returned to the caller or not. Although I refere only to XML::LibXML here, XML::NodeFilter is implemented more open, so it can be used with other DOM implementations as well. The Spec And The Implementation The DOM Traversal and Range Specification just defines the contstants and accept_node() for a node filter. The XML::NodeFilter implementation also adds the what_to_show() function to the class definition, since I think that it is a filters job to decide which node-types should be shown and which not. Also XML::NodeFilter adds two constants which are not part of the specification. The first one is FILTER_DECLINED. It tells the traversal logic, that it should apply another filter in order to decide if the node should be visible or not. While the spec only defines the traversal logic to have either one or no filter applied, it showed that it leads to cleaner code if more filter could be used in conjunktion. If a traversal logic finds a single filter that returns FILTER_DECLINED, it should be handled as a synonym of FILTER_ACCEPT. While FILTER_ACCEPT is finite and would cause all other not to be executed, FILTER_DECLINED gives one more flexibility. The second extension of the specification is the SHOW_NONE symbol. It was added for operational completeness, so one can explicitly switch the node type filter off (means all node types are rejected). This will cause the two calls of what_to_show have a different result: $filter->what_to_show( undef ); # will set SHOW_ALL $filter->what_to_show( SHOW_NONE ); # will not set SHOW_ALL Infact SHOW_NONE is a NULL flag, that means it can be added to any list of flags without altering it. $filter->what_to_show( SHOW_ELEMENT | SHOW_TEXT | SHOW_NONE ); is therefore identical to $filter->what_to_show( SHOW_ELEMENT | SHOW_TEXT ); SHOW_NONE is espacially usefull to avoid numerically or even more ugly unintialized values while building such flag lists dynamically..

Requirements: No special requirements
Platforms: Linux
Keyword: Declined Filter Libraries Node Nodefilter None One Programming Show Specification Traversal Xml Xmlnodefilter
Users rating: 0/10

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


XML::NODEFILTER RELATED
Libraries  -  XML::Filter::DOMFilter::LibXML 0.02
XML::Filter::DOMFilter::LibXML is a SAX Filter allowing DOM processing of selected subtrees. SYNOPSIS use XML::LibXML; use XML::Filter::DOMFilter::LibXML; my $filter = XML::Filter::DOMFilter::LibXML->new( Handler => $handler, XPathContext...
4.1 KB  
Libraries  -  XML::Filter::Sort::BufferMgr 1.01
XML::Filter::Sort::BufferMgr is a Perl implementation class used by XML::Filter::Sort. The documentation is targetted at developers wishing to extend or replace this class. For user documentation, see XML::Filter::Sort. Two classes are used to...
25.6 KB  
Modules  -  Custom Node Template 6.x-1.5
Custom Node Template allows one to specify different node templates to be used on a node by node basis.While there are many options for customizing the display of pages, fewer options exist for customizing the display of nodes. There are many...
10 KB  
Modules  -  Filter by node type 1.0
These rules are applied after the role-based restrictions, so it can never offer more input formats than the default role-based input formats would.If after all limits are applied there are no input formats available for a given user on a given...
 
Graphic Animators  -  MSU NoiseGenerator VirtualDub plugin 2.1
The filter adds artificial noise of one common types (equidistributed, normaldistributed, colour stains, echo signal) to video stream. It can be used for testing, debuging and comparison of various denoising filters.'Settings' dialogue box allows...
286.72 KB  
Programming  -  Cross Compiler 1.0
This is a cross compiler and code generator which converts the source code from one programming language to another language or binary.
72.24 KB  
Utilities  -  Dylan Code Collection 1.7
A collection of useful libraries written in the Dylan programming language. The intent of this project is to provide easily accessible libraries for people developing applications using Functional Developer and/or Gwydion Dylan.
673.63 KB  
Programming  -  kin 0.0.2
kin is a set of libraries and tools supporting meta-programming for engineering and technical computing applications. This JVM version of kin has been superseded by the stand-alone version being developed at http://purl.org/net/kin.
477.44 KB  
Programming  -  Extensible GNU Awk, with XML, PostgreSQL 1.0
An extension of GAWK, the GNU implementation of the AWK Programming Language, for processing XML data. XMLgawk is just one of the extensions that come with the xgawk distribution. The others are the PostgreSQL and the MPFR extension.
3.08 MB  
Programming  -  JSpice 0.3.8
JSpice is an implementation of the OpenSpice programming language specification (see http://www.openspice.org/). OpenSpice is an attempt to make the features of a powerful modern programming language accessible to occasional programmers.
4.53 MB  
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