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

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

Serving Software Downloads in 956 Categories, Downloaded 50.327.810 Times

Template::Plugin::XML::DOM 2.16

  Date Added: September 24, 2010  |  Visits: 974

Template::Plugin::XML::DOM

Report Broken Link
Printer Friendly Version


Product Homepage
Download (99 downloads)



Template::Plugin::XML::DOM is a plugin interface to XML::DOM. SYNOPSIS # load plugin [% USE dom = XML.DOM %] # also provide XML::Parser options [% USE dom = XML.DOM(ProtocolEncoding = ISO-8859-1) %] # parse an XML file [% doc = dom.parse(filename) %] [% doc = dom.parse(file = filename) %] # parse XML text [% doc = dom.parse(xmltext) %] [% doc = dom.parse(text = xmltext) %] # call any XML::DOM methods on document/element nodes [% FOREACH node = doc.getElementsByTagName(report) %] * [% node.getAttribute(title) %] # or [% node.title %] [% END %] # define VIEW to present node(s) [% VIEW report notfound=xmlstring %] # handler block for a ... element [% BLOCK report %] [% item.content(view) %] [% END %] # handler block for a ... element [% BLOCK section %] < h1 >[% item.title %]< /h1 > [% item.content(view) %] [% END %] # default template block converts item to string [% BLOCK xmlstring; item.toString; END %] # block to generate simple text [% BLOCK text; item; END %] [% END %] # now present node (and children) via view [% report.print(node) %] # or print node content via view [% node.content(report) %] # following methods are soon to be deprecated in favour of views [% node.toTemplate %] [% node.childrenToTemplate %] This is a Template Toolkit plugin interfacing to the XML::DOM module. The plugin loads the XML::DOM module and creates an XML::DOM::Parser object which is stored internally. The parse() method can then be called on the plugin to parse an XML stream into a DOM document. [% USE dom = XML.DOM %] [% doc = dom.parse(/tmp/myxmlfile) %] The XML::DOM plugin object (i.e. dom in these examples) acts as a sentinel for the documents it creates (doc and any others). When the plugin object goes out of scope at the end of the current template, it will automatically call dispose() on any documents that it has created. Note that if you dispose of the the plugin object before the end of the block (i.e. by assigning a new value to the dom variable) then the documents will also be disposed at that point and should not be used thereafter. [% USE dom = XML.DOM %] [% doc = dom.parse(/tmp/myfile) %] [% dom = new value %] # releases XML.DOM plugin and calls # dispose() on doc, so dont use it! The plugin constructor will also accept configuration options destined for the XML::Parser object: [% USE dom = XML.DOM(ProtocolEncoding = ISO-8859-1) %].

Requirements: No special requirements
Platforms: Linux
Keyword: Block Doc Dom End Libraries Node Plugin Programming Templatepluginxmldom Use View Xml Xml Dom
Users rating: 0/10

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


TEMPLATE::PLUGIN::XML::DOM RELATED
Libraries  -  HTML::Template::Extension::DOC 0.25
HTML::Template::Extension::DOC are plugins for comments in template. SYNOPSIS use HTML::Template::Extension; my $text = qq | This is a template example... An example use of...
15.36 KB  
MS Office Add-Ins  -  Free 3DPageFlip Doc to Image Converter 1.0
Free 3DPageFlip Doc to Image Converter: 3DPageFlip Doc to Image is totally free for doc to image generation. It's simple to use with Batch Convert Mode, Hot Directory Mode, and Command Line Mode. This sophisticated image files conversion utility...
2.1 MB  
Finance  -  Batch DOC TO CHM Generator 2011.3.211.1834
Batch DOC TO CHM Generator is an easy-to-use application which helps you convert documents to CHM Help files. Batch DOC TO CHM Generator can convert Word DOC / DOCX (*.docx, *.doc, *.htm, *.html, *.mht, *.mhtml, *.rtf, *.txt, *.pwd, *.psw) to...
 
Finance  -  Simple Palm Doc Convertor 1.0
Simple Palm Doc Convertor is a simple and easy to use application that is capable of converting simple documents in/from: Palm Doc (pdb) file Text File Microsoft Word (docx) file for WindowsAll
 
Development Editors  -  CIL 1.4.0
CIL, also knows as the C Intermediate Language was built as a front-end for the C programming language. It was designed in order to facilitate program analysis and transformation. CIL will parse and typecheck a program, and compile it into a...
 
Modules  -  SOBI2 OpenSEF Plugin 1.0
SOBI2 OpenSEF Plugin is for use with the OpenSEF SEF component. It creates search engine friendly URLs for SOBI2.The created URLs are stored in the OpenSEF database tables. Therefore you are able to change them afterwards.Some of the settings of...
 
Science  -  Avian Freeware Suite 0.1
Avian Freeware Suite (AFS) provides two things: Developers with libraries for Java Swing Widgets, XML handling, Fortran95 and Pascal; End users (Medical students, doctors, scientists) with productivity tools they can use (quizzes, XML databasing &...
5.43 MB  
Programming  -  devkitPro 1.5.7
This project is for homebrew console development tools based on the gnu compiler collection with additional tools and libraries to aid programming each supported console. The windows variants are built with MinGW.
444.26 KB  
Science  -  Eclipse Tail Plugin 0.5.0
An eclipse plugin providing tail in view component.
399.97 KB  
Programming  -  RapidMiner Information Extraction Plugin 1.0.2
The Information Extraction Plugin allows the use of information extraction techniques within RapidMiner. It can be seen as an interface between natural language and IE- or datamining-methods, by extracting interesting information out of documents.
5.66 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
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