| 1 |
NAME |
| 2 |
Template::XML - XML plugins for the Template Toolkit |
| 3 |
|
| 4 |
SYNOPSIS |
| 5 |
[% USE XML; |
| 6 |
|
| 7 |
dom = XML.dom('foo.xml'); |
| 8 |
xpath = XML.xpath('bar.xml'); |
| 9 |
simple = XML.simple('baz.xml'); |
| 10 |
rss = XML.simple('news.rdf'); |
| 11 |
%] |
| 12 |
|
| 13 |
DESCRIPTION |
| 14 |
The Template-XML distribution provides a number of Template Toolkit |
| 15 |
plugin modules for working with XML. |
| 16 |
|
| 17 |
The Template::Plugin::XML module is a front-end to the various other XML |
| 18 |
plugin modules. Through this you can access XML files and directories of |
| 19 |
XML files via the Template::Plugin::XML::File and |
| 20 |
Template::Plugin::XML::Directory modules (which subclass from the |
| 21 |
Template::Plugin::File and Template::Plugin::Directory modules |
| 22 |
respectively). You can then create a Document Object Model (DOM) from an |
| 23 |
XML file (Template::Plugin::XML::DOM), examine it using XPath queries |
| 24 |
(Template::Plugin::XML::XPath), turn it into a Perl data structure |
| 25 |
(Template::Plugin::XML::Simple) or parse it as an RSS (RDF Site Summary) |
| 26 |
file. |
| 27 |
|
| 28 |
The basic XML plugins were distributed as part of the Template Toolkit |
| 29 |
until version 2.15 released in May 2006. At this time they were |
| 30 |
extracted into this separate Template-XML distribution and an alpha |
| 31 |
version of this Template::Plugin::XML front-end module was added. |
| 32 |
|
| 33 |
AUTHORS |
| 34 |
Andy Wardley wrote the Template Toolkit plugin modules, with assistance |
| 35 |
from Simon Matthews in the case of the XML::DOM plugin. Matt Sergeant |
| 36 |
wrote the XML::XPath module. Enno Derksen and Clark Cooper wrote the |
| 37 |
XML::DOM module. Jonathan Eisenzopf wrote the XML::RSS module. Grant |
| 38 |
McLean wrote the XML::Simple module. Clark Cooper and Larry Wall wrote |
| 39 |
the XML::Parser module. James Clark wrote the expat library. |
| 40 |
|
| 41 |
COPYRIGHT |
| 42 |
Copyright (C) 1996-2006 Andy Wardley. All Rights Reserved. |
| 43 |
|
| 44 |
This module is free software; you can redistribute it and/or modify it |
| 45 |
under the same terms as Perl itself. |
| 46 |
|
| 47 |
SEE ALSO |
| 48 |
Template, Template::Plugins, Template::Plugin::XML, |
| 49 |
Template::Plugin::XML::DOM, Template::Plugin::XML::RSS, |
| 50 |
Template::Plugin::XML::Simple, Template::Plugin::XML::XPath |
| 51 |
|