package HTTP::Body::XForms;
$HTTP::Body::XForms::VERSION = '1.22';
use strict;
use base 'HTTP::Body';
use bytes;

use File::Temp 0.14;

=head1 NAME

HTTP::Body::XForms - HTTP Body XForms Parser


    use HTTP::Body::XForms;


HTTP Body XForms Parser. This module parses single part XForms
submissions, which are identifiable by the content-type
application/xml. The XML is stored unparsed on the parameter

=head1 METHODS

=over 4

=item spin

This method is overwrited to set the param XForms:Model with
the buffer content.


sub spin {
    my $self = shift;

    return unless $self->length == $self->content_length;

    $self->param( 'XForms:Model', $self->{buffer} );
    $self->{buffer} = '';
    $self->{state}  = 'done';

    return $self->SUPER::init();


=head1 AUTHOR

Daniel Ruoso, C<>

=head1 LICENSE

This library is free software . You can redistribute it and/or modify 
it under the same terms as perl itself.