Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

CGI::XML

Name CGI::XML
Version 0.1
Located at /usr/share/perl5
File /usr/share/perl5/CGI/XML.pm
Is Core No
Search CPAN for this module CGI::XML
Documentation CGI::XML
Module Details CGI::XML

NAME

CGI::XML - Perl extension for converting CGI.pm variables to/from XML


SYNOPSIS

  use CGI::XML;
  $q = new CGI::XML;
  # convert CGI.pm variables to XML
  $xml = $q->toXML;
  $xml = $q->toXML($root);

  # convert XML to CGI.pm variables
  $q->toCGI($xml);


DESCRIPTION

The CGI::XML module converts CGI.pm variables to XML and vice versa.

CGI::XML is a subclass of CGI.pm, so it reads the CGI variables just as CGI.pm would.


METHODS

$q = new CGI::XML
creates a new instance of CGI::XML. You also have access to all of the methods in CGI.pm.

$q->toXML([$root])
where $root is an optional parameter that specifies the root element. By default, toXML will not return a root element.

$q->toCGI($xml)
where $xml is the XML you would like to convert to CGI.pm parameters. Values in the XML will overwrite any existing values if they exist.


NOTE

CGI::XML does not currently handle multiple selections passed from HTML forms. This will be added in a future release.


AUTHOR

Jonathan Eisenzopf <eisen@pobox.com>


CONTRIBUTORS

David Black <dblack@candle.superlink.net>


SEE ALSO

perl(1), XML::Parser(3).

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026