CGI::XML(3pm)

CGI::XML3pm

Perl extension for converting cgi.pm variables to/from xml

Usage

  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);

Overview

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.

Contributors

David Black <[email protected]>

Releases

13 releases since Debian 2.2 (Potato); the text changed 7 times.

  1. 2.2
  2. 3.0
  3. 3.1
  4. 4.0–7
  5. 8
  6. 9–10
  7. 11
  8. 12–13

Author

Jonathan Eisenzopf <[email protected]>

From libcgi-xml-perl 0.1-16 in Debian 13 (Trixie). Parsed by carta from the page's man source.