| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package WebService::Simple::Parser::XML::Lite; | 
| 2 | 1 |  |  | 1 |  | 3 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 32 |  | 
| 3 | 1 |  |  | 1 |  | 4 | use warnings; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 22 |  | 
| 4 | 1 |  |  | 1 |  | 3 | use base qw(WebService::Simple::Parser); | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 337 |  | 
| 5 | 1 |  |  | 1 |  | 6 | use XML::Parser::Lite::Tree; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 11 |  | 
| 6 | 1 |  |  | 1 |  | 19 | use XML::Parser::Lite::Tree::XPath; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 7 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | __PACKAGE__->mk_accessors($_) for qw(lite); | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | sub new | 
| 11 |  |  |  |  |  |  | { | 
| 12 | 1 |  |  | 1 | 1 | 2 | my $class = shift; | 
| 13 | 1 |  |  |  |  | 1 | my %args  = @_; | 
| 14 |  |  |  |  |  |  |  | 
| 15 | 1 |  | 33 |  |  | 6 | my $lite = delete $args{lite} || XML::Parser::Lite::Tree::instance(); | 
| 16 | 1 |  |  |  |  | 130 | my $self  = $class->SUPER::new(%args); | 
| 17 | 1 |  |  |  |  | 11 | $self->{lite} = $lite; | 
| 18 | 1 |  |  |  |  | 4 | return $self; | 
| 19 |  |  |  |  |  |  | } | 
| 20 |  |  |  |  |  |  |  | 
| 21 |  |  |  |  |  |  | sub parse_response | 
| 22 |  |  |  |  |  |  | { | 
| 23 | 0 |  |  | 0 | 1 |  | my $self = shift; | 
| 24 | 0 |  |  |  |  |  | XML::Parser::Lite::Tree::XPath->new( | 
| 25 |  |  |  |  |  |  | $self->{lite}->parse( $_[0]->decoded_content ) ); | 
| 26 |  |  |  |  |  |  | } | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | 1; | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | __END__ |