Query: cgi::xml
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
XML(3pm) User Contributed Perl Documentation XML(3pm)NAMECGI::XML - Perl extension for converting CGI.pm variables to/from XMLSYNOPSISuse 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);DESCRIPTIONThe 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.NOTECGI::XML does not currently handle multiple selections passed from HTML forms. This will be added in a future release.AUTHORJonathan Eisenzopf <eisen@pobox.com>CONTRIBUTORSDavid Black <dblack@candle.superlink.net>SEE ALSOperl(1), XML::Parser(3). perl v5.8.8 2004-12-05 XML(3pm)