Template::Plugin::XML::DOM

Template::Plugin::XML::DOM is a plugin interface to XML::DOM.
Download

Template::Plugin::XML::DOM Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Andy Wardley and Simon Matthews
  • Publisher web site:
  • http://search.cpan.org/~abw/

Template::Plugin::XML::DOM Tags


Template::Plugin::XML::DOM Description

Template::Plugin::XML::DOM is a plugin interface to XML::DOM. Template::Plugin::XML::DOM is a plugin interface to XML::DOM.SYNOPSIS # load plugin # also provide XML::Parser options # parse an XML file # parse XML text # call any XML::DOM methods on document/element nodes * # or # define VIEW to present node(s) # handler block for a ... element # handler block for a ... element < h1 >< /h1 > # default template block converts item to string # block to generate simple text # now present node (and children) via view # or print node content via view # following methods are soon to be deprecated in favour of views 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. 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. # releases XML.DOM plugin and calls # dispose() on 'doc', so don't use it!The plugin constructor will also accept configuration options destined for the XML::Parser object: Requirements: · Perl


Template::Plugin::XML::DOM Related Software