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


CGI-XML documentation  | view source Contained in the CGI-XML distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  use XML::CGI;
  $q = new XML::CGI;

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

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

DESCRIPTION

Top

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

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

METHODS

Top

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

where $root is an optional parameter that specifies the root element. By default, toXML will not return a root element.

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

Top

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

AUTHOR

Top

Jonathan Eisenzopf <eisen@pobox.com>

CONTRIBUTORS

Top

David Black <dblack@candle.superlink.net>

SEE ALSO

Top

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


CGI-XML documentation  | view source Contained in the CGI-XML distribution.