Template::Plugin::XML::LibXML 1.07 review
DownloadTemplate::Plugin::XML::LibXML is a XML::LibXML Template Toolkit Plugin. SYNOPSIS [% USE docroot = XML.LibXML("helloworld.xml
|
|
Template::Plugin::XML::LibXML is a XML::LibXML Template Toolkit Plugin.
SYNOPSIS
[% USE docroot = XML.LibXML("helloworld.xml") %]
The message is: [% docroot.find("/greeting/text") %]
This module provides a plugin for the XML::LibXML module. It can be utilised the same as any other Template Toolkit plugin, by using a USE statement from within a Template. The use statment will return a reference to root node of the parsed document
Specifying a Data Source
The plugin is capable of using either a string, a filename or a filehandle as a source for either XML data, or HTML data which will be converted to XHTML internally.
The USE statement can take one or more arguments to specify what XML should be processed. If only one argument is passed then the plugin will attempt to guess how what it has been passed should be interpreted.
When it is forced to guess what type of data it is used the routine will first look for an open filehandle, which if it finds it will assume it's a filehandle to a file containing XML. Failing this (in decreasing order) it will look for the chars "
Template::Plugin::XML::LibXML 1.07 search tags