Reference

Slash::XML(3pm)

Slash::XML - Perl extension for Slash

        use Slash::XML;
        xmlDisplay(%data);

Slash::XML aids in creating XML. Right now, only RSS is supported.
xmlDisplay(TYPE, PARAM [, OPTIONS]) Creates XML data. The XML type, which determines which XML creation routine to call. Right now, supports only "rss" which calls XML::RSS::create(). A hashref of parameters to pass to the XML creation routine. Hashref of options. Currently supported options are below. If OPTIONS is the value 1 instead of a hashref, that will be the same as if the hashref were "{ Return => 1 }". Boolean for whether to print (false) or return (true) the processed template data. Default is to print output via Apache, with full HTML headers. If OPTIONS->{Return} is true, the XML data. Otherwise, returns true/false for success/failure.
date2iso8601([TIME]) Return a standard ISO 8601 time string. Some sort of string in GMT that can be parsed by Date::Parse. If no TIME given, uses current time. The time string.
encode(VALUE [, KEY]) Encodes the data to put it into the XML. Normally will encode assuming the parsed data will be printed in HTML. See KEY. Value to be encoded. If KEY is "link", then data will be encoded so as NOT to assume the parsed data will be printed in HTML. The encoded data. See xmlencode() and xmlencode_plain() in Slash::Utility. Slash(3), Slash::Utility(3), XML::Parser(3), XML::RSS(3).

History