This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: HTML form contents => XML document
- To: "xsl-list at lists dot mulberrytech dot com" <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] HTML form contents => XML document
- From: Matt Sergeant <matt at sergeant dot org>
- Date: Thu, 2 Aug 2001 13:49:35 +0100 (BST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Thu, 2 Aug 2001, dante wrote:
> G'day all,
>
> I'd like to have the contents of a form converted/exported into a xml
> document
> How can this be done server-side?
> With PHP?
> Perl/cgi?
There are a couple of options with Perl. One is simple CGI::XML, which
dumps the form variables into simple name/value pairs in a simple XML
representation. The other is CGI::XMLForm, which creates XML based on the
name of the form values. You name them using XPaths, which then generates
the XML based on the XPaths entered.
Both are covered in
http://xml.sergeant.org/xmldevcon/cgi2xml.dkb?style=print
--
<Matt/>
/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list