Tt plugin for xml files
# different want to specify an XML file name [% USE xf = XML.File( filename ) %] [% USE xf = XML.File( file = filename ) %] [% USE xf = XML.File( name = filename ) %] [% USE xf = XML.File( xml_file = filename ) %]
# different want to specify an XML file handle [% USE xf = XML.File( handle ) %] [% USE xf = XML.File( fh = handle ) %] [% USE xf = XML.File( handle = handle ) %] [% USE xf = XML.File( xml_fh = handle ) %]
[% xf.type %] # 'name' or 'handle' [% xf.name %] # filename (if defined) [% xf.handle %] # file handle (if defined)
\s-1TODO\s0
\s-1TODO\s0
Andy Wardley, Mark Fowler and others...
\s-1TODO\s0
Template, Template::Plugins, Template::Plugin::XML::DOM, Template::Plugin::XML::RSS, Template::Plugin::XML::Simple, Template::Plugin::XML::XPath