- Timestamp:
- 06/01/08 22:34:52 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/WebService-Simple/trunk/lib/WebService/Simple/Parser/XML/Simple.pm
r12988 r13005 7 7 use XML::Simple; 8 8 9 sub new { 10 my $class = shift; 11 my %args = @_; 12 my $xs = delete $args{xs} || XML::Simple->new; 13 my $self = $class->SUPER::new(%args); 14 $self->{xs} = $xs; 15 return $self; 16 } 17 9 18 sub parse_response { 10 my $self = shift; 11 my $response = shift; 12 my %opt = @_; 13 return XMLin( $response->content, %opt ); 19 my $self = shift; 20 $self->{xs}->XMLin( $_[0]->content ); 14 21 } 15 22 … … 24 31 =head1 METHODS 25 32 33 =head2 new 34 26 35 =head2 parse_response 27 36
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)